aboutsummaryrefslogtreecommitdiffstats
path: root/modules/icecream/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-01 00:33:34 +0000
committerMichael Scherer <misc@mageia.org>2011-02-01 00:33:34 +0000
commit6b46e47c42123e8688c38220ce3049108e246f01 (patch)
tree4276fbca5bf933dc51320954c1cd7266394b8475 /modules/icecream/manifests
parent843ca45f73eaf736b5d46216f7db7969b36805b4 (diff)
downloadpuppet-6b46e47c42123e8688c38220ce3049108e246f01.tar
puppet-6b46e47c42123e8688c38220ce3049108e246f01.tar.gz
puppet-6b46e47c42123e8688c38220ce3049108e246f01.tar.bz2
puppet-6b46e47c42123e8688c38220ce3049108e246f01.tar.xz
puppet-6b46e47c42123e8688c38220ce3049108e246f01.zip
add icecream module
Diffstat (limited to 'modules/icecream/manifests')
-rw-r--r--modules/icecream/manifests/init.pp36
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/icecream/manifests/init.pp b/modules/icecream/manifests/init.pp
new file mode 100644
index 00000000..437ef8c3
--- /dev/null
+++ b/modules/icecream/manifests/init.pp
@@ -0,0 +1,36 @@
+class icecream {
+ class scheduler {
+ package { "icecream-scheduler":
+ ensure => installed,
+ }
+
+ service { "icecream-scheduler":
+ ensure => running,
+ hasstatus => true,
+ subscribe => [Package['icecream-scheduler']],
+ }
+ }
+
+ class client_common {
+ package { "icecream":
+ ensure => installed,
+ }
+
+ service { "icecream":
+ ensure => running,
+ hasstatus => true,
+ subscribe => [Package['icecream']],
+ }
+ }
+
+ define client($host => '') {
+ include icecream::client_common
+ file { "/etc/sysconfig/icecream":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 640,
+ content => template("icecream/sysconfig"),
+ }
+ }
+}