From 4db0e978ca7bc3bc7c77d8eeb79cbd0d684b7b85 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 17 Mar 2015 10:47:33 -0300 Subject: Certificates folder --- files/htdocs/certs/empty | 0 manifests/setup.pp | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 files/htdocs/certs/empty 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, -- cgit v1.2.3