summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-06-05 22:46:16 +0200
committermh <mh@immerda.ch>2013-06-05 22:50:12 +0200
commitfd30d893e543c35207f33482a3b84f7d66f5390b (patch)
treeb0282dc84efece05ea8df5ca0c78830ec3e85cbd
parent2c26fc88e9026a417f36b9dbf8d6db916ca133e8 (diff)
downloadpuppet-mumble-fd30d893e543c35207f33482a3b84f7d66f5390b.tar.gz
puppet-mumble-fd30d893e543c35207f33482a3b84f7d66f5390b.tar.bz2
move class to it's own file
-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'],
+ }
+}