/[adm]/puppet/modules/icecream/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/icecream/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 926 - (show annotations) (download)
Tue Feb 1 00:33:34 2011 UTC (13 years, 1 month ago) by misc
File size: 861 byte(s)
add icecream module
1 class icecream {
2 class scheduler {
3 package { "icecream-scheduler":
4 ensure => installed,
5 }
6
7 service { "icecream-scheduler":
8 ensure => running,
9 hasstatus => true,
10 subscribe => [Package['icecream-scheduler']],
11 }
12 }
13
14 class client_common {
15 package { "icecream":
16 ensure => installed,
17 }
18
19 service { "icecream":
20 ensure => running,
21 hasstatus => true,
22 subscribe => [Package['icecream']],
23 }
24 }
25
26 define client($host => '') {
27 include icecream::client_common
28 file { "/etc/sysconfig/icecream":
29 ensure => present,
30 owner => root,
31 group => root,
32 mode => 640,
33 content => template("icecream/sysconfig"),
34 }
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.30