aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-10 20:17:40 +0000
committerMichael Scherer <misc@mageia.org>2010-12-10 20:17:40 +0000
commit7d954db2185281ad07e061485716c1ff715593d2 (patch)
treeade6493305dcb99e968c0b81b5fad62396427a29 /modules/sympa/manifests
parent0ea63b4325b40ab75970936e99f37443d03e87ac (diff)
downloadpuppet-7d954db2185281ad07e061485716c1ff715593d2.tar
puppet-7d954db2185281ad07e061485716c1ff715593d2.tar.gz
puppet-7d954db2185281ad07e061485716c1ff715593d2.tar.bz2
puppet-7d954db2185281ad07e061485716c1ff715593d2.tar.xz
puppet-7d954db2185281ad07e061485716c1ff715593d2.zip
- add 2 datasources for owner and moderation, to have the defined in
ldap
Diffstat (limited to 'modules/sympa/manifests')
-rw-r--r--modules/sympa/manifests/init.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp
index 008ef26b..ab88e42b 100644
--- a/modules/sympa/manifests/init.pp
+++ b/modules/sympa/manifests/init.pp
@@ -75,13 +75,28 @@ class sympa {
source => "svn://svn.mageia.org/svn/web/templates/sympa/trunk"
}
- file { "/etc/sympa/lists_xml/":
+ file { ["/etc/sympa/lists_xml/","/etc/sympa/data_sources/"]:
ensure => directory,
owner => root,
group => root,
mode => 755,
}
+ define ldap_group_datasource {
+ file { "/etc/sympa/data_sources/ldap-$name.incl":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 755,
+ content => template('sympa/ldap_group.incl')
+ }
+ }
+ # add each group that could be used in a sympa ml either as
+ # - owner
+ # - editor ( moderation )
+ ldap_group_datasource { "mga-sysadm": }
+ ldap_group_datasource { "mga-ml_moderators": }
+
# directory that will hold the list data
# i am not sure of the name ( misc, 09/12/10 )
file { "/var/lib/sympa/expl/":