Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aim_control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
aim_control
Commits
1cd01995
Commit
1cd01995
authored
9 months ago
by
Saga Norén Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
Changing permissions for mysql directory
parent
5d9d53c7
No related branches found
Branches containing commit
No related tags found
3 merge requests
!67
Test
,
!66
Devel
,
!63
Changing permissions for mysql directory
Pipeline
#131914
passed
9 months ago
Stage: puppet
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/init.pp
+13
-7
13 additions, 7 deletions
manifests/init.pp
with
13 additions
and
7 deletions
manifests/init.pp
+
13
−
7
View file @
1cd01995
...
...
@@ -127,7 +127,7 @@ class aim_control (
source
=>
'git@gitlab.liu.se:aim-control/laravel.git'
,
user
=>
'apache'
,
group
=>
'skadereg'
,
require
=>
File
[
'/var/www/skadereg/'
],
# Ensure directory is created first
require
=>
File
[
'/var/www/skadereg/'
],
}
apache::vhost
{
'default:80'
:
...
...
@@ -157,7 +157,7 @@ class aim_control (
directoryindex
=>
'index.php'
,
}
],
require
=>
Vcsrepo
[
'/var/www/skadereg'
],
# Ensure VCS repo is checked out first
require
=>
Vcsrepo
[
'/var/www/skadereg'
],
}
file
{
'/var/www/skadereg/.env'
:
...
...
@@ -166,7 +166,7 @@ class aim_control (
group
=>
'skadereg'
,
mode
=>
'0660'
,
content
=>
template
(
"
${module_name}
/dotenv.erb"
),
require
=>
Vcsrepo
[
'/var/www/skadereg'
],
# Ensure VCS repo is checked out first
require
=>
Vcsrepo
[
'/var/www/skadereg'
],
}
exec
{
'artisan migrate'
:
...
...
@@ -198,13 +198,12 @@ class aim_control (
'mysqld'
=>
{
'bind-address'
=>
'0.0.0.0'
,
'port'
=>
33060
,
'socket'
=>
'/var/lib/mysql/mysql.sock'
,
# Add socket path explicitly if needed
'socket'
=>
'/var/lib/mysql/mysql.sock'
,
},
},
restart
=>
true
,
# Ensure server restarts to apply configuration changes
restart
=>
true
,
}
# Create the database with the necessary charset
mysql::db
{
$db_name
:
user
=>
$skadereg_ro_user
,
password
=>
$skadereg_ro_password
,
...
...
@@ -213,7 +212,6 @@ class aim_control (
grant
=>
[
'SELECT'
],
}
# Create the root user with full privileges
mysql_user
{
'root@%'
:
ensure
=>
'present'
,
password_hash
=>
mysql_password
(
$mysql_password
),
...
...
@@ -246,4 +244,12 @@ class aim_control (
backuprotate
=>
'7'
,
time
=>
[
'1'
,
'0'
],
}
# Setting permissions for /var/lib/mysql to ensure it's accessible
file
{
'/var/lib/mysql'
:
ensure
=>
'directory'
,
owner
=>
'mysql'
,
group
=>
'mysql'
,
mode
=>
'0755'
,
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment