diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-03-17 10:47:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-03-17 10:47:33 -0300 |
commit | 4db0e978ca7bc3bc7c77d8eeb79cbd0d684b7b85 (patch) | |
tree | 623ea2ac9af4e6ecfdbc18eab8d0586c658fb91d | |
parent | 38372b13c071d483d34cc39da62a19b87439d93a (diff) | |
download | puppet-websites-4db0e978ca7bc3bc7c77d8eeb79cbd0d684b7b85.tar.gz puppet-websites-4db0e978ca7bc3bc7c77d8eeb79cbd0d684b7b85.tar.bz2 |
Certificates folder
-rw-r--r-- | files/htdocs/certs/empty | 0 | ||||
-rw-r--r-- | manifests/setup.pp | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/files/htdocs/certs/empty b/files/htdocs/certs/empty new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/files/htdocs/certs/empty 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, |