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
b47c0273
Commit
b47c0273
authored
9 months ago
by
Saga Norén Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
Trying to remove duplicate error
parent
7c29a60f
No related branches found
No related tags found
3 merge requests
!67
Test
,
!66
Devel
,
!54
Trying to remove duplicate error
Pipeline
#131690
passed
9 months ago
Stage: puppet
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/init.pp
+3
-1
3 additions, 1 deletion
manifests/init.pp
with
3 additions
and
1 deletion
manifests/init.pp
+
3
−
1
View file @
b47c0273
...
...
@@ -224,7 +224,8 @@ class aim_control (
user
=>
'root@%'
,
}
# Create the read-only user with select privileges on the database
# Check to avoid duplication errors
if
!
defined
(
Mysql_user
[
"
${skadereg_ro_user}
@%"
])
{
mysql_user
{
"
${skadereg_ro_user}
@%"
:
ensure
=>
'present'
,
password_hash
=>
mysql_password
(
$skadereg_ro_password
),
...
...
@@ -236,6 +237,7 @@ class aim_control (
table
=>
"
${db_name}
.*"
,
user
=>
"
${skadereg_ro_user}
@%"
,
}
}
# ['entries', 'guardian_confirmations', 'users'].each |String $table| {
# mysql_grant { "${skadereg_ro_user}@%/${db_name}.${table}":
...
...
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