1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
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>
|