diff options
author | Michael Scherer <misc@mageia.org> | 2010-12-07 02:40:28 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-12-07 02:40:28 +0000 |
commit | 19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d (patch) | |
tree | b34ffae0a7714ee44ef46a05aa91e6c5e13d4161 /modules | |
parent | b6432bfbb246667d3066cd794795f2b99488d67b (diff) | |
download | puppet-19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d.tar puppet-19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d.tar.gz puppet-19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d.tar.bz2 puppet-19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d.tar.xz puppet-19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d.zip |
- create sympa user & db
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sympa/manifests/init.pp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp index 163b525f..33b74e00 100644 --- a/modules/sympa/manifests/init.pp +++ b/modules/sympa/manifests/init.pp @@ -9,6 +9,10 @@ class sympa { $password = extlookup("sympa_password",'x') $ldappass = extlookup("sympa_ldap",'x') + @@postgresql::user { 'sympa': + password => $password, + } + file { '/etc/sympa/sympa.conf': ensure => present, # should be cleaner to have it root owned, but puppet do not support acl @@ -33,8 +37,16 @@ class sympa { webapp_file => "sympa/webapp_sympa.conf", } - apache::vhost_other_app { "ml.$domain": + apache::vhost_other_app { "ml.$domain": vhost_file => "sympa/vhost_ml.conf", - } + } + + @@postgresql::database { 'sympa': + description => "Sympa database", + user => "sympa", + require => Postgresql::User["sympa"] + } + + } |