[Mageia-sysadm] [557] add a mailling list type
root at mageia.org
root at mageia.org
Thu Dec 9 13:34:23 CET 2010
Revision: 557
Author: misc
Date: 2010-12-09 13:34:23 +0100 (Thu, 09 Dec 2010)
Log Message:
-----------
add a mailling list type
Modified Paths:
--------------
puppet/modules/sympa/manifests/init.pp
Added Paths:
-----------
puppet/modules/sympa/templates/list.xml
Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp 2010-12-09 12:34:22 UTC (rev 556)
+++ puppet/modules/sympa/manifests/init.pp 2010-12-09 12:34:23 UTC (rev 557)
@@ -70,5 +70,21 @@
mode => 755,
}
}
+
+ define list($subject, $profile, $language = 'en') {
+
+ $xml_file = "/etc/sympa/lists_xml/$name.xml"
+
+ file { "$xml_file":
+ owner => root,
+ group => root,
+ content => template('sympa/list.xml')
+ }
+
+ exec { "sympa.pl --create_list --robot=ml.$domain --input_file=$xml_file":
+ refreshonly => true,
+ subscribe => File["$xml_file"]
+ }
+ }
}
Added: puppet/modules/sympa/templates/list.xml
===================================================================
--- puppet/modules/sympa/templates/list.xml (rev 0)
+++ puppet/modules/sympa/templates/list.xml 2010-12-09 12:34:23 UTC (rev 557)
@@ -0,0 +1,15 @@
+<?xml version="1.0" ?>
+<list>
+ <listname><%= name %></listname>
+ <type><%= profile%></type>
+ <subject><%= subject %></subject>
+ <description/>
+ <status>open</status>
+ <language><%= language %></language>
+ <!-- <owner_include multiple="1">
+ <source>my_file</source>
+ </owner_include>
+ -->
+ <!-- TODO adjust later, add moderators pulled by ldap -->
+ <owner multiple="1"><email>misc at zarb.org</email> </owner>
+</list>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101209/2a6b44ce/attachment.html>
More information about the Mageia-sysadm
mailing list