diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-December/001145.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2010-December/001145.html | 209 |
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 { "sympa.pl --create_list --robot=$sympa::variable::vhost --input_file=$xml_file": + refreshonly => true, +- subscribe => File["$xml_file"] ++ subscribe => File["$xml_file"], ++ before => File["/var/lib/sympa/expl/$name/config"], + } ++ ++ file { "/var/lib/sympa/expl/$name/config": ++ ensure => present, ++ owner => sympa, ++ group => sympa, ++ mode => 750, ++ content => template("sympa/config"), ++ } + } + } + + +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 <%= subject %> ++ ++status open ++ ++visibility noconceal ++ ++lang <%= language %> ++ ++<% if subscriber_ldap_group %> ++# TODO check scenari ++subscribe closed ++unsubscribe closed ++<% else %> ++subscribe open_web_only_notify ++unsubscribe open_web_only_notify ++<% end %> ++ ++# TODO reception nomail ++# profile normal ++owner_include ++source mga-sysadm ++reception nomail ++profile normal ++ ++editor_include ++source mga-ml_moderators ++reception nomail ++profile normal ++ ++ ++<% if reply_to %> ++# TODO ++reply_to_header ++value other_email ++other_email <%= reply_to %> ++apply forced ++<% end %> ++ ++ ++ ++<% if sender_email %> ++#TODO write scenari ++send restricted_<%= sender_email %> ++ ++<% elsif sender_ldap_group %> ++#TODO write scenari ++send restricted_<%= sender_ldap_group %> ++ ++<% else %> ++#TODO write scenari ++send subscriber_moderated ++ ++<% end %> ++ ++ ++#TODO topics ++# topics ++ ++<% if subscriber_ldap_group %> ++include_ldap_query ++ host ldap.<% domain %> ++ suffix ou=People,<%= dc_suffix %> ++ timeout 10 ++ filter (memberOf=<%= subscriber_ldap_group %>)) ++ attrs mail ++ select first ++ scope one ++<% end %> ++ ++web_archive ++ ++<% if public_archive %> ++#TODO check ++access public ++<% else %> ++#TODO check ++access private ++<% end %> ++archive ++access owner ++period month ++ ++digest 1,4 13:26 ++ ++review owner ++ ++ +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: </pipermail/mageia-sysadm/attachments/20101214/98b3c2c5/attachment.html> +</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> |