diff options
-rw-r--r-- | manifests/base.pp | 2 | ||||
-rw-r--r-- | manifests/centos/five.pp | 3 | ||||
-rw-r--r-- | manifests/centos/six.pp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index ce0f255..d31b03b 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -26,7 +26,7 @@ class strongswan::base { # this is needed because if the glob-include in the config # doesn't find anything it fails. "${strongswan::config_dir}/hosts": - ensure => directory, + ensure => directory, purge => true, force => true, recurse => true; diff --git a/manifests/centos/five.pp b/manifests/centos/five.pp index 101ab42..1b4ef0f 100644 --- a/manifests/centos/five.pp +++ b/manifests/centos/five.pp @@ -1,8 +1,9 @@ +# strongswan on centos 5 class strongswan::centos::five inherits strongswan::base { if $::selinux == 'true' { package{'strongswan-selinux': - before => Service['ipsec'], ensure => installed, + before => Service['ipsec'], } } } diff --git a/manifests/centos/six.pp b/manifests/centos/six.pp index 4301482..2e65ebf 100644 --- a/manifests/centos/six.pp +++ b/manifests/centos/six.pp @@ -1,3 +1,4 @@ +# strongswan on centos six class strongswan::centos::six inherits strongswan::base { Service['ipsec']{ name => 'strongswan', |