summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-December/001145.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-December/001145.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-December/001145.html209
1 files changed, 209 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-December/001145.html b/zarb-ml/mageia-sysadm/2010-December/001145.html
new file mode 100644
index 000000000..363738420
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-December/001145.html
@@ -0,0 +1,209 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [580] manage configuration of the list after creating the list
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B580%5D%20manage%20configuration%20of%20the%20list%20after%0A%09creating%20the%20list&In-Reply-To=%3C20101213235459.422604015E%40valstar.mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="001144.html">
+ <LINK REL="Next" HREF="001146.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [580] manage configuration of the list after creating the list</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B580%5D%20manage%20configuration%20of%20the%20list%20after%0A%09creating%20the%20list&In-Reply-To=%3C20101213235459.422604015E%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [580] manage configuration of the list after creating the list">root at mageia.org
+ </A><BR>
+ <I>Tue Dec 14 00:54:59 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001144.html">[Mageia-sysadm] [579] ldap_search_filter will be defined later in a more dynamic fashion
+</A></li>
+ <LI>Next message: <A HREF="001146.html">[Mageia-sysadm] [581] add support for sender_ldap_group, sender_email and subscriber_ldap_group
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1145">[ date ]</a>
+ <a href="thread.html#1145">[ thread ]</a>
+ <a href="subject.html#1145">[ subject ]</a>
+ <a href="author.html#1145">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 580
+Author: misc
+Date: 2010-12-14 00:54:58 +0100 (Tue, 14 Dec 2010)
+Log Message:
+-----------
+manage configuration of the list after creating the list
+
+Modified Paths:
+--------------
+ puppet/modules/sympa/manifests/init.pp
+
+Added Paths:
+-----------
+ puppet/modules/sympa/templates/config
+
+Modified: puppet/modules/sympa/manifests/init.pp
+===================================================================
+--- puppet/modules/sympa/manifests/init.pp 2010-12-13 23:54:57 UTC (rev 579)
++++ puppet/modules/sympa/manifests/init.pp 2010-12-13 23:54:58 UTC (rev 580)
+@@ -121,7 +121,14 @@
+ }
+ }
+
+- define list($subject, $profile, $language = 'en') {
++ define list($subject,
++ $profile = false,
++ $language = 'en',
++ $reply_to = false,
++ $sender_email = false,
++ $sender_ldap_group = false,
++ $subscriber_ldap_group = false,
++ $public_archive = true ) {
+
+ include sympa::variable
+
+@@ -135,8 +142,17 @@
+
+ exec { &quot;sympa.pl --create_list --robot=$sympa::variable::vhost --input_file=$xml_file&quot;:
+ refreshonly =&gt; true,
+- subscribe =&gt; File[&quot;$xml_file&quot;]
++ subscribe =&gt; File[&quot;$xml_file&quot;],
++ before =&gt; File[&quot;/var/lib/sympa/expl/$name/config&quot;],
+ }
++
++ file { &quot;/var/lib/sympa/expl/$name/config&quot;:
++ ensure =&gt; present,
++ owner =&gt; sympa,
++ group =&gt; sympa,
++ mode =&gt; 750,
++ content =&gt; template(&quot;sympa/config&quot;),
++ }
+ }
+ }
+
+
+Added: puppet/modules/sympa/templates/config
+===================================================================
+--- puppet/modules/sympa/templates/config (rev 0)
++++ puppet/modules/sympa/templates/config 2010-12-13 23:54:58 UTC (rev 580)
+@@ -0,0 +1,87 @@
++subject &lt;%= subject %&gt;
++
++status open
++
++visibility noconceal
++
++lang &lt;%= language %&gt;
++
++&lt;% if subscriber_ldap_group %&gt;
++# TODO check scenari
++subscribe closed
++unsubscribe closed
++&lt;% else %&gt;
++subscribe open_web_only_notify
++unsubscribe open_web_only_notify
++&lt;% end %&gt;
++
++# TODO reception nomail
++# profile normal
++owner_include
++source mga-sysadm
++reception nomail
++profile normal
++
++editor_include
++source mga-ml_moderators
++reception nomail
++profile normal
++
++
++&lt;% if reply_to %&gt;
++# TODO
++reply_to_header
++value other_email
++other_email &lt;%= reply_to %&gt;
++apply forced
++&lt;% end %&gt;
++
++
++
++&lt;% if sender_email %&gt;
++#TODO write scenari
++send restricted_&lt;%= sender_email %&gt;
++
++&lt;% elsif sender_ldap_group %&gt;
++#TODO write scenari
++send restricted_&lt;%= sender_ldap_group %&gt;
++
++&lt;% else %&gt;
++#TODO write scenari
++send subscriber_moderated
++
++&lt;% end %&gt;
++
++
++#TODO topics
++# topics
++
++&lt;% if subscriber_ldap_group %&gt;
++include_ldap_query
++ host ldap.&lt;% domain %&gt;
++ suffix ou=People,&lt;%= dc_suffix %&gt;
++ timeout 10
++ filter (memberOf=&lt;%= subscriber_ldap_group %&gt;))
++ attrs mail
++ select first
++ scope one
++&lt;% end %&gt;
++
++web_archive
++
++&lt;% if public_archive %&gt;
++#TODO check
++access public
++&lt;% else %&gt;
++#TODO check
++access private
++&lt;% end %&gt;
++archive
++access owner
++period month
++
++digest 1,4 13:26
++
++review owner
++
++
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101214/98b3c2c5/attachment.html&gt;
+</PRE>
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001144.html">[Mageia-sysadm] [579] ldap_search_filter will be defined later in a more dynamic fashion
+</A></li>
+ <LI>Next message: <A HREF="001146.html">[Mageia-sysadm] [581] add support for sender_ldap_group, sender_email and subscriber_ldap_group
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1145">[ date ]</a>
+ <a href="thread.html#1145">[ thread ]</a>
+ <a href="subject.html#1145">[ subject ]</a>
+ <a href="author.html#1145">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
+mailing list</a><br>
+</body></html>