diff options
author | mh <mh@immerda.ch> | 2012-12-30 16:54:36 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-12-30 16:54:36 +0100 |
commit | 773b5491530f02b979010ed9e76eac90940d2a1d (patch) | |
tree | 039dec682c8b185bb9451f2e8dcf39cf4cd3f20b /manifests/init.pp | |
parent | 1ac11038d7c1cc1177f3b1f326254b932beeb83c (diff) |
rearrange things to make it work also on el6
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 |