Skip to content
Snippets Groups Projects
Commit b184f432 authored by Saga Norén Karlsson's avatar Saga Norén Karlsson
Browse files

Merge branch 'update_init' into 'devel'

Trying to remove duplicate error

See merge request !54
parents 7c29a60f b47c0273
No related branches found
No related tags found
3 merge requests!67Test,!66Devel,!54Trying to remove duplicate error
Pipeline #131691 passed
......@@ -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}":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment