diff options
author | mh <mh@immerda.ch> | 2013-01-03 16:25:17 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-01-03 16:25:17 +0100 |
commit | efabeee0d89f5bff3b9aa897b57c6496912a0e3f (patch) | |
tree | 2da0a3031ab772e561b951547a3badf9e0795d51 /manifests/centos | |
parent | 5828c4a6ebc1f23d8a52e1a2d9327657b0a00dde (diff) |
differentiate between cert and configs and place certs in the right location on el6
Diffstat (limited to 'manifests/centos')
-rw-r--r-- | manifests/centos/six.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/centos/six.pp b/manifests/centos/six.pp index 5bc7283..4301482 100644 --- a/manifests/centos/six.pp +++ b/manifests/centos/six.pp @@ -9,6 +9,17 @@ class strongswan::centos::six inherits strongswan::base { path => '/etc/strongswan/ipsec.conf' } + file{ [ '/etc/strongswan/ipsec.d', + '/etc/strongswan/ipsec.d/private', + '/etc/strongswan/ipsec.d/certs' ]: + ensure => directory, + require => Package['strongswan'], + before => Exec['ipsec_privatekey'], + owner => root, + group => 0, + mode => '0600'; + } + file{'/etc/sysconfig/strongswan': content => "config='/etc/strongswan/strongswan.conf'\n", notify => Service['ipsec'], |