]> gitweb.fluxo.info Git - puppet-websites.git/commitdiff
Certificates folder
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 17 Mar 2015 13:47:33 +0000 (10:47 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 17 Mar 2015 13:47:33 +0000 (10:47 -0300)
files/htdocs/certs/empty [new file with mode: 0644]
manifests/setup.pp

diff --git a/files/htdocs/certs/empty b/files/htdocs/certs/empty
new file mode 100644 (file)
index 0000000..e69de29
index af2bce6d3aeb61630612ee07308d2095f5ec40a0..292e82fb35fd67f0b9a6383f520e3ca83a385805 100644 (file)
@@ -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,