aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/database.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/subsystems/database.pp b/manifests/subsystems/database.pp
index d9e379c..5796e9c 100644
--- a/manifests/subsystems/database.pp
+++ b/manifests/subsystems/database.pp
@@ -31,21 +31,21 @@ class database {
define instance($password, $ensure = 'present', $privileges = all) {
include mysql::server
- mysql_database { "$name":
+ mysql_database { "${name}":
ensure => $ensure,
require => Service['mysql'],
}
- mysql_user { "$name@%":
+ mysql_user { "${name}@%":
ensure => $ensure,
password_hash => mysql_password($password),
- require => Mysql_database["$name"],
+ require => Mysql_database["${name}"],
}
if $ensure == 'present' {
- mysql_grant { "$name@%/$name":
+ mysql_grant { "${name}@%/${name}":
privileges => $privileges,
- require => Mysql_user["$name@%"],
+ require => Mysql_user["${name}@%"],
}
}
}