summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-13 19:11:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-13 19:11:06 -0300
commita6b00a7fb6160cf7d9741bd74bd119ed30c11dab (patch)
tree31023811deda6336772db9b625ed6e5765f276ad
parente8d914eddb2367c4e2caa6e403aecee88d8a2d64 (diff)
downloadpuppet-mumble-a6b00a7fb6160cf7d9741bd74bd119ed30c11dab.tar.gz
puppet-mumble-a6b00a7fb6160cf7d9741bd74bd119ed30c11dab.tar.bz2
Adding mumble::ssl
-rw-r--r--manifests/init.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 722c07e..aaa7263 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -19,3 +19,20 @@ class mumble {
mode => 0640;
}
}
+
+class mumble::ssl inherits mumble {
+ file { [ "/etc/mumble-server", "/etc/mumble-server/ssl", "/etc/mumble-server/ssl/certs", "/etc/mumble-server/ssl/private" ]:
+ ensure => directory,
+ owner => "root",
+ group => "mumble-server",
+ mode => 0750,
+ }
+
+ ssl::cert { "cert":
+ owner => 'mumble-server',
+ group => 'mumble-server',
+ base => '/etc/mumble-server/ssl',
+ notify => Service['mumble-server'],
+ require => File['/etc/mumble-server/ssl/private'],
+ }
+}