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

Trying to remove duplicate error again

parent b184f432
Branches
Tags
No related merge requests found
Pipeline #131706 failed
...@@ -224,20 +224,6 @@ class aim_control ( ...@@ -224,20 +224,6 @@ class aim_control (
user => 'root@%', user => 'root@%',
} }
# 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),
}
mysql_grant { "${skadereg_ro_user}@%/${db_name}.*":
ensure => 'present',
privileges => ['SELECT'],
table => "${db_name}.*",
user => "${skadereg_ro_user}@%",
}
}
# ['entries', 'guardian_confirmations', 'users'].each |String $table| { # ['entries', 'guardian_confirmations', 'users'].each |String $table| {
# mysql_grant { "${skadereg_ro_user}@%/${db_name}.${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.
Please register or to comment