From: Silvio Rhatto Date: Tue, 17 Mar 2015 13:47:33 +0000 (-0300) Subject: Certificates folder X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4db0e978ca7bc3bc7c77d8eeb79cbd0d684b7b85;p=puppet-websites.git Certificates folder --- diff --git a/files/htdocs/certs/empty b/files/htdocs/certs/empty new file mode 100644 index 0000000..e69de29 diff --git a/manifests/setup.pp b/manifests/setup.pp index af2bce6..292e82f 100644 --- a/manifests/setup.pp +++ b/manifests/setup.pp @@ -30,6 +30,21 @@ class websites::setup { "puppet:///modules/websites/htdocs/images", ] } + # Certificates folder + file { "${apache::www_folder}/certs": + ensure => directory, + recurse => true, + purge => true, + force => true, + owner => "root", + group => "root", + # This mode will also apply to files from the source directory + mode => 0644, + # Puppet will automatically set +x for directories + source => [ "puppet:///modules/site_apache/htdocs/${::domain}/certs", + "puppet:///modules/websites/htdocs/certs", ] + } + # Web index file { "${apache::www_folder}/index.html": ensure => present,