diff options
author | Michael Scherer <misc@mageia.org> | 2010-12-13 23:54:58 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-12-13 23:54:58 +0000 |
commit | bafdc0d1e2cd17cbf039df1ccbdc7de912c4e9c5 (patch) | |
tree | 51668b4826167375b1eb2124011882e5f9ab65b5 /modules/sympa/manifests/init.pp | |
parent | 47be17069f8187fe86c75d509e97f5118db5eeb5 (diff) | |
download | puppet-bafdc0d1e2cd17cbf039df1ccbdc7de912c4e9c5.tar puppet-bafdc0d1e2cd17cbf039df1ccbdc7de912c4e9c5.tar.gz puppet-bafdc0d1e2cd17cbf039df1ccbdc7de912c4e9c5.tar.bz2 puppet-bafdc0d1e2cd17cbf039df1ccbdc7de912c4e9c5.tar.xz puppet-bafdc0d1e2cd17cbf039df1ccbdc7de912c4e9c5.zip |
manage configuration of the list after creating the list
Diffstat (limited to 'modules/sympa/manifests/init.pp')
-rw-r--r-- | modules/sympa/manifests/init.pp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp index 4e6fe27c..18481764 100644 --- a/modules/sympa/manifests/init.pp +++ b/modules/sympa/manifests/init.pp @@ -121,7 +121,14 @@ class sympa { } } - 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,7 +142,16 @@ class sympa { 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"), } } } |