aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-09 12:34:23 +0000
committerMichael Scherer <misc@mageia.org>2010-12-09 12:34:23 +0000
commit97814533cf8e70700cac5d8d546e6e5b1d058efd (patch)
treef3cdde885e63ab944574f4d7dd1bbdf5e5ba2498 /modules/sympa/manifests
parent3bc6f2ed53d1f80676a78d54befe0bb82e988513 (diff)
downloadpuppet-97814533cf8e70700cac5d8d546e6e5b1d058efd.tar
puppet-97814533cf8e70700cac5d8d546e6e5b1d058efd.tar.gz
puppet-97814533cf8e70700cac5d8d546e6e5b1d058efd.tar.bz2
puppet-97814533cf8e70700cac5d8d546e6e5b1d058efd.tar.xz
puppet-97814533cf8e70700cac5d8d546e6e5b1d058efd.zip
add a mailling list type
Diffstat (limited to 'modules/sympa/manifests')
-rw-r--r--modules/sympa/manifests/init.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp
index b4bac2bd..8ad97342 100644
--- a/modules/sympa/manifests/init.pp
+++ b/modules/sympa/manifests/init.pp
@@ -70,5 +70,21 @@ class sympa {
mode => 755,
}
}
+
+ define list($subject, $profile, $language = 'en') {
+
+ $xml_file = "/etc/sympa/lists_xml/$name.xml"
+
+ file { "$xml_file":
+ owner => root,
+ group => root,
+ content => template('sympa/list.xml')
+ }
+
+ exec { "sympa.pl --create_list --robot=ml.$domain --input_file=$xml_file":
+ refreshonly => true,
+ subscribe => File["$xml_file"]
+ }
+ }
}