Skip to content
Snippets Groups Projects

Trying to remove duplicate error

Merged Saga Norén Karlsson requested to merge update_init into devel
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -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}":
Loading