Revision
574
Author
misc
Date
2010-12-10 21:17:40 +0100 (Fri, 10 Dec 2010)

Log Message

- add 2 datasources for owner and moderation, to have the defined in
  ldap

Modified Paths

Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp	2010-12-09 23:13:07 UTC (rev 573)
+++ puppet/modules/sympa/manifests/init.pp	2010-12-10 20:17:40 UTC (rev 574)
@@ -75,13 +75,28 @@
             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/":