aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/database.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/subsystems/database.pp b/manifests/subsystems/database.pp
index 99c43f9..b896c01 100644
--- a/manifests/subsystems/database.pp
+++ b/manifests/subsystems/database.pp
@@ -13,9 +13,11 @@ class database {
require => Mysql_database["$name"],
}
- mysql_grant { "$name@%/$name":
- privileges => all,
- require => Mysql_user["$name@%"],
+ if $ensure == 'present' {
+ mysql_grant { "$name@%/$name":
+ privileges => all,
+ require => Mysql_user["$name@%"],
+ }
}
}
}