From 0cff2c8111f03221f041bf86684937efb8867fe4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 Jan 2013 15:29:56 -0200 Subject: Make custom_key_dir a class parameter and not a global variable; misc database updates; adding default exec and fileserver config --- manifests/subsystems/database.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'manifests/subsystems') 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}@%"], } } } -- cgit v1.2.3