summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-07-27 18:41:27 +0200
committermh <mh@immerda.ch>2011-07-27 18:41:27 +0200
commit16b06320cd3bb3121446717c05b6bc13ae2ff133 (patch)
treee2680d36bc4282d85e97fc294b0942367273dbde /manifests
init of trocla module
Diffstat (limited to 'manifests')
-rw-r--r--manifests/config.pp8
-rw-r--r--manifests/master.pp17
-rw-r--r--manifests/master/ree.pp14
3 files changed, 39 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
new file mode 100644
index 0000000..3a4a356
--- /dev/null
+++ b/manifests/config.pp
@@ -0,0 +1,8 @@
+class trocla::config {
+ file{"${settings::confdir}/trocla.yaml":
+ source => [ "puppet:///modules/site-trocla/${fqdn}/trocla.yaml",
+ 'puppet:///modules/site-trocla/trocla.yaml' ],
+ require => Package['trocla'],
+ owner => root, group => puppet, mode => 0640;
+ }
+}
diff --git a/manifests/master.pp b/manifests/master.pp
new file mode 100644
index 0000000..62c975e
--- /dev/null
+++ b/manifests/master.pp
@@ -0,0 +1,17 @@
+# Class: trocla::master
+#
+# This module manages the necessary things for trocla on a master.
+#
+# [Remember: No empty lines between comments and class definition]
+class trocla::master {
+
+ require rubygems::moneta
+ require rubygems::highline
+
+ package{'trocla':
+ ensure => present,
+ provider => gem,
+ }
+
+ include trocla::config
+}
diff --git a/manifests/master/ree.pp b/manifests/master/ree.pp
new file mode 100644
index 0000000..92cc07b
--- /dev/null
+++ b/manifests/master/ree.pp
@@ -0,0 +1,14 @@
+# Class: trocla::master::ree
+#
+# This module manages the necessary things for trocla on a master.
+#
+# [Remember: No empty lines between comments and class definition]
+class trocla::master::ree {
+
+ require ruby-enterprise::gems::moneta
+ require ruby-enterprise::gems::highline
+
+ ruby-enterprise::gem{'trocla': }
+
+ include trocla::config
+}