diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index ad9486c..f842ebf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,7 +6,32 @@ class strongswan( class{'monkeysphere': publish_key => $monkeysphere_publish_key - } -> class{'certtool': } -> class{'strongswan::base': } + } -> class{'certtool': } + + case $::operatingsystem { + centos: { + case $::lsbmajdistrelease { + '5': { + $config_dir = '/etc/ipsec.d' + class{'strongswan::centos::five': + require => Class['monkeysphere'], + } + } + default: { + $config_dir = '/etc/strongswan' + class{'strongswan::centos::six': + require => Class['monkeysphere'], + } + } + } + } + default: { + $config_dir = '/etc/ipsec.d' + class{'strongswan::base': + require => Class['monkeysphere'], + } + } + } if $manage_shorewall { include shorewall::rules::ipsec |