From 7d954db2185281ad07e061485716c1ff715593d2 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 10 Dec 2010 20:17:40 +0000 Subject: - add 2 datasources for owner and moderation, to have the defined in ldap --- modules/sympa/manifests/init.pp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'modules/sympa') 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/": -- cgit v1.2.1