aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-19 16:21:08 +0000
committerMichael Scherer <misc@mageia.org>2012-03-19 16:21:08 +0000
commit1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8 (patch)
tree2cfe4a7e36b3ab14ccf7c1a82f73fbe60b44961a /modules/sympa/manifests
parent57413d667aa24370cc7a915765f507c99cadc7c3 (diff)
downloadpuppet-1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8.tar
puppet-1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8.tar.gz
puppet-1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8.tar.bz2
puppet-1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8.tar.xz
puppet-1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8.zip
split ldap_group_datasource in a separate file and directory, and rename it
Diffstat (limited to 'modules/sympa/manifests')
-rw-r--r--modules/sympa/manifests/datasource/ldap_group.pp5
-rw-r--r--modules/sympa/manifests/init.pp10
2 files changed, 7 insertions, 8 deletions
diff --git a/modules/sympa/manifests/datasource/ldap_group.pp b/modules/sympa/manifests/datasource/ldap_group.pp
new file mode 100644
index 00000000..6b34ec92
--- /dev/null
+++ b/modules/sympa/manifests/datasource/ldap_group.pp
@@ -0,0 +1,5 @@
+define sympa::datasource::ldap_group {
+ file { "/etc/sympa/data_sources/$name.incl":
+ content => template('sympa/data_sources/ldap_group.incl')
+ }
+}
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp
index c97b04e7..939cfbd8 100644
--- a/modules/sympa/manifests/init.pp
+++ b/modules/sympa/manifests/init.pp
@@ -88,17 +88,11 @@ class sympa {
}
}
- define ldap_group_datasource {
- file { "/etc/sympa/data_sources/$name.incl":
- content => template('sympa/data_sources/ldap_group.incl')
- }
- }
-
# add each group that could be used in a sympa ml either as
# - owner
# - editor ( moderation )
- ldap_group_datasource { "mga-sysadmin": }
- ldap_group_datasource { "mga-ml_moderators": }
+ sympa::datasource::ldap_group { "mga-sysadmin": }
+ sympa::datasource::ldap_group { "mga-ml_moderators": }
# directory that will hold the list data