From efabeee0d89f5bff3b9aa897b57c6496912a0e3f Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 3 Jan 2013 16:25:17 +0100 Subject: differentiate between cert and configs and place certs in the right location on el6 --- manifests/centos/six.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests/centos/six.pp') 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'], -- cgit v1.2.3