From 6a3044cd1b77a4fdd6b7c0eaa5d780f589e708ec Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 19 Jun 2011 14:25:09 -0300 Subject: Privileges parameter for database::instance --- manifests/subsystems/database.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manifests/subsystems') diff --git a/manifests/subsystems/database.pp b/manifests/subsystems/database.pp index b896c01..e52f5ba 100644 --- a/manifests/subsystems/database.pp +++ b/manifests/subsystems/database.pp @@ -2,7 +2,7 @@ class database { include mysql::server # Database definitions - define instance($password, $ensure = 'present') { + define instance($password, $ensure = 'present', $privileges = 'all') { mysql_database { "$name": ensure => $ensure, } @@ -15,7 +15,7 @@ class database { if $ensure == 'present' { mysql_grant { "$name@%/$name": - privileges => all, + privileges => $privileges, require => Mysql_user["$name@%"], } } -- cgit v1.2.3