puppet-standalone-mashup/shared/additional-modules/god-debian/manifests/init.pp

30 lines
558 B
ObjectPascal
Raw Normal View History

2012-05-02 12:25:29 +00:00
class god-debian {
class { god: }
$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
}
}