summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-06-19 14:29:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-06-19 14:29:35 -0300
commit0dc57747545e8256b443d90495faee72cce5111d (patch)
tree93f44cbad513353ed5cf5209896cc131fb9f98b8 /manifests
parentd357a0742b63106d23b8cf677d8aafcd4c32135f (diff)
downloadpuppet-mail-0dc57747545e8256b443d90495faee72cce5111d.tar.gz
puppet-mail-0dc57747545e8256b443d90495faee72cce5111d.tar.bz2
Changing sympa database privileges
Diffstat (limited to 'manifests')
-rw-r--r--manifests/sympa.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/sympa.pp b/manifests/sympa.pp
index 04c166e..3c25d5d 100644
--- a/manifests/sympa.pp
+++ b/manifests/sympa.pp
@@ -28,7 +28,16 @@ class mail::sympa inherits mail::regexps {
# Database configuration
#
database::instance { "$sympa_database_name":
- password => "$sympa_database_password",
+ password => "$sympa_database_password",
+ privileges => $lsbdistcodename ? {
+ 'lenny' => 'all'.
+ default => [ 'alter_priv', 'alter_routine_priv', 'create_priv',
+ 'create_routine_priv', 'create_tmp_table_priv',
+ 'create_view_priv', 'delete_priv', 'drop_priv',
+ 'event_priv', 'execute_priv', 'grant_priv',
+ 'index_priv', 'insert_priv', 'lock_tables_priv',
+ 'references_priv', 'select_priv', 'show_view_priv',
+ 'trigger_priv', 'update_priv' ],
}
group { 'sympa':