summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp18
-rw-r--r--manifests/ssl.pp17
2 files changed, 18 insertions, 17 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 23b00a9..9de9364 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,3 +1,4 @@
+# setup mumble
class mumble {
package { 'mumble-server':
ensure => installed,
@@ -21,20 +22,3 @@ 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'],
- }
-}
diff --git a/manifests/ssl.pp b/manifests/ssl.pp
new file mode 100644
index 0000000..3b605f7
--- /dev/null
+++ b/manifests/ssl.pp
@@ -0,0 +1,17 @@
+# ssl setup for mumble
+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'],
+ }
+}