2012-05-02 12:25:29 +00:00
|
|
|
class god-debian {
|
|
|
|
class { god: }
|
|
|
|
|
2012-05-02 22:17:23 +00:00
|
|
|
$init_d_prolog = template('god-debian/init_d_prolog')
|
|
|
|
$init_d_prerun = template('god-debian/init_d_prerun')
|
|
|
|
|
2012-05-02 12:25:29 +00:00
|
|
|
$god_init_d = "${base::share_path}/god/god-init.d"
|
|
|
|
file { $god_init_d:
|
|
|
|
content => template('god/god-init.d'),
|
|
|
|
require => File[$god::share],
|
|
|
|
mode => 755
|
|
|
|
}
|
|
|
|
|
|
|
|
file { 'etc/init.d/god':
|
|
|
|
ensure => $god_init_d,
|
|
|
|
require => Class['god']
|
|
|
|
}
|
|
|
|
|
|
|
|
update_rc_d_defaults { 'god':
|
|
|
|
require => File['/etc/init.d/god']
|
|
|
|
}
|
|
|
|
|
|
|
|
running_service { 'god':
|
|
|
|
require => Update_rc_d_defaults['god']
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/usr/local/sbin/resurrect':
|
|
|
|
content => template('god-debian/resurrect'),
|
|
|
|
mode => 755
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|