summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/htdocs/certs/empty0
-rw-r--r--manifests/setup.pp15
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,