aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-06-19 14:25:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-06-19 14:25:09 -0300
commit6a3044cd1b77a4fdd6b7c0eaa5d780f589e708ec (patch)
tree57419e11c87025d9d7bc36f8a58ad4acfe398607 /manifests/subsystems
parent34c177082b864111d4fd057372e742b095cdd03b (diff)
downloadpuppet-nodo-6a3044cd1b77a4fdd6b7c0eaa5d780f589e708ec.tar.gz
puppet-nodo-6a3044cd1b77a4fdd6b7c0eaa5d780f589e708ec.tar.bz2
Privileges parameter for database::instance
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/database.pp4
1 files changed, 2 insertions, 2 deletions
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@%"],
}
}