aboutsummaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorFabien COMBERNOUS <fabien.combernous@adullact.org>2019-01-24 21:40:30 +0100
committerFabien COMBERNOUS <fabien.combernous@adullact.org>2019-01-24 21:49:25 +0100
commitc71d16a192e2ae701027408b431d02048988775e (patch)
tree0a873b92163c3d7012456212b9db75700508e5d5 /manifests/config.pp
parent8c14f40bb5bedad52b608287785ed92c146c4889 (diff)
downloadpuppet-ferm-c71d16a192e2ae701027408b431d02048988775e.tar.gz
puppet-ferm-c71d16a192e2ae701027408b431d02048988775e.tar.bz2
permit to choose ipv4, ipv6 or both
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 1736fa6..23ed390 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -5,6 +5,8 @@ class ferm::config {
# this is a private class
assert_private("You're not supposed to do that!")
+ $_ip = join($ferm::ip_versions, ' ')
+
# copy static files to ferm
# on a long term point of view, we want to package this
file{'/etc/ferm.d':
@@ -29,7 +31,11 @@ class ferm::config {
concat::fragment{'ferm.conf':
target => $ferm::configfile,
- content => epp("${module_name}/ferm.conf.epp"),
+ content => epp(
+ "${module_name}/ferm.conf.epp", {
+ 'ip' => $_ip,
+ }
+ ),
order => '50',
}
}