aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-07 02:40:28 +0000
committerMichael Scherer <misc@mageia.org>2010-12-07 02:40:28 +0000
commit19eaa13c7bb4f8d93ec3bc1e03657e1b82f26c1d (patch)
treeb34ffae0a7714ee44ef46a05aa91e6c5e13d4161 /modules/sympa/manifests
parentb6432bfbb246667d3066cd794795f2b99488d67b (diff)
downloadpuppet-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/sympa/manifests')
-rw-r--r--modules/sympa/manifests/init.pp16
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"]
+ }
+
+
}