/[adm]/puppet/modules/sympa/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/sympa/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 581 by misc, Mon Dec 13 23:55:00 2010 UTC revision 582 by misc, Mon Dec 13 23:55:01 2010 UTC
# Line 182  class sympa { Line 182  class sympa {
182              }              }
183          }          }
184      }      }
185    
186    #
187    #   various types of list that can be directly used
188    #
189    #
190        define public_list($subject, $language = 'en') {
191            list { $name:
192                subject => $subject,
193               # profile => "public",
194                language => $language,
195            }
196        }
197    
198        # list where announce are sent by member of ldap_group
199        # reply_to is set to $reply_to
200        define announce_list_group($subject, $reply_to, $sender_ldap_group, $language = 'en') {
201            # profile + scenario
202            list{ $name:
203                subject => $subject,
204                profile => "",
205                language => $language,
206                reply_to => $reply_to,
207                sender_ldap_group => $sender_ldap_group,
208            }
209    
210        }
211    
212    
213        # list where announce are sent by $email only
214        # reply_to is set to $reply_to    
215        define announce_list_email($subject, $reply_to, $sender_email, $language = 'en') {
216           list{ $name:
217                subject => $subject,
218                profile => "",
219                language => $language,
220                reply_to => $reply_to,
221                sender_email => $sender_email,
222            }
223        }
224    
225        # list where people cannot subscribe, where people from $ldap_group receive
226        # mail, with public archive
227        define restricted_list($subject, $subscriber_ldap_group, $language = 'en') {
228           list{ $name:
229                subject => $subject,
230                profile => "",
231                language => $language,
232                subscriber_ldap_group => $subscriber_ldap_group,
233                sender_ldap_group => $subscriber_ldap_group,
234            }
235        }
236    
237        # same as restricted list, but anybody can post
238        define restricted_list_open($subject, $subscriber_ldap_group, $language = 'en') {
239           list{ $name:
240                subject => $subject,
241                profile => "",
242                language => $language,
243                subscriber_ldap_group => $subscriber_ldap_group,
244                sender_ldap_group => $subscriber_ldap_group,
245            }        
246        }
247    
248        # list with private archive, restricted to member of $ldap_group
249        define private_list($subject, $subscriber_ldap_group, $language ='en') {
250           list{ $name:
251                subject => $subject,
252                profile => "",
253                language => $language,
254                subscriber_ldap_group => $subscriber_ldap_group,
255                sender_ldap_group => $subscriber_ldap_group,
256                public_archive => false,
257            }
258        }
259        
260        # list with private archive, restricted to member of $ldap_group
261        # everybody can post
262        # used for contact alias
263        define private_list_open($subject, $subscriber_ldap_group, $language ='en') {
264           list{ $name:
265                subject => $subject,
266                profile => "",
267                language => $language,
268                subscriber_ldap_group => $subscriber_ldap_group,
269                public_archive => false,
270            }
271        }
272    
273        # same as private_list, but post are restricted to $email
274        # ( scripting )
275        define private_list_email($subject, $subscriber_ldap_group, $sender_email, $language ='en') {
276            list{ $name:
277                subject => $subject,
278                profile => "",
279                language => $language,
280                subscriber_ldap_group => $subscriber_ldap_group,
281                sender_email => $sender_email,
282                public_archive => false,
283            }
284        }
285    
286  }  }
287    

Legend:
Removed from v.581  
changed lines
  Added in v.582

  ViewVC Help
Powered by ViewVC 1.1.30