aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/database.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/database.pp')
-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@%"],
}
}