diff options
Diffstat (limited to 'modules/icecream/manifests/init.pp')
-rw-r--r-- | modules/icecream/manifests/init.pp | 36 |
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"), + } + } +} |