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

Trying to remove duplicate error

parent 7c29a60f
No related branches found
No related tags found
3 merge requests!67Test,!66Devel,!54Trying to remove duplicate error
Pipeline #131690 passed
This commit is part of merge request !54. Comments created here will be created in the context of that merge request.
......@@ -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