summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'],
+ }
+}