aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-15 16:32:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-15 16:32:49 -0300
commit46bc3aad73983c6f5dd08bc6225463a22005232d (patch)
tree3395dc85bce18d8e26a9c2ec68aa801ec0d3616a /manifests
downloadpuppet-ssl-46bc3aad73983c6f5dd08bc6225463a22005232d.tar.gz
puppet-ssl-46bc3aad73983c6f5dd08bc6225463a22005232d.tar.bz2
Initial import
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..625b971
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,25 @@
+class ssl {
+ file { [ "/etc/ssl", "/etc/ssl/certs", "/etc/ssl/private" ]:
+ ensure => directory,
+ owner => "root",
+ group => "root",
+ }
+
+ file { "/etc/ssl/certs/cert.crt":
+ ensure => present,
+ owner => "root",
+ group => "root",
+ mode => 644,
+ source => "puppet://$server/files/keys/ssl/cert.crt",
+ require => File["/etc/ssl/certs"],
+ }
+
+ file { "/etc/ssl/private/cert.pem":
+ ensure => present,
+ owner => "root",
+ group => "root",
+ mode => 600,
+ source => "puppet://$server/files/keys/ssl/cert.pem",
+ require => File["/etc/ssl/private"],
+ }
+}