1 |
class icecream { |
2 |
class scheduler { |
3 |
package { "icecream-scheduler": } |
4 |
|
5 |
service { "icecream-scheduler": |
6 |
ensure => running, |
7 |
hasstatus => true, |
8 |
subscribe => [Package['icecream-scheduler']], |
9 |
} |
10 |
} |
11 |
|
12 |
class client_common { |
13 |
package { "icecream": } |
14 |
|
15 |
service { "icecream": |
16 |
ensure => running, |
17 |
hasstatus => true, |
18 |
subscribe => [Package['icecream']], |
19 |
} |
20 |
} |
21 |
|
22 |
define client($host => '') { |
23 |
include icecream::client_common |
24 |
file { "/etc/sysconfig/icecream": |
25 |
content => template("icecream/sysconfig"), |
26 |
} |
27 |
} |
28 |
} |