2012-01-31 01:28:30 +00:00
|
|
|
class god {
|
|
|
|
gem { 'god':
|
|
|
|
path => "${ruby::path}:${base::path}",
|
|
|
|
ensure => present,
|
|
|
|
require => Make_and_install['ruby']
|
|
|
|
}
|
|
|
|
|
2012-05-02 22:17:23 +00:00
|
|
|
$bin = "${base::install_path}/ruby/bin/god"
|
|
|
|
$dir = config_path("god.d")
|
|
|
|
$pid = pid_path($name)
|
|
|
|
$log = log_path($name)
|
|
|
|
$share = share_path($name)
|
2012-01-31 01:28:30 +00:00
|
|
|
|
2012-05-02 22:17:23 +00:00
|
|
|
file { [ $dir, $share ]:
|
2012-01-31 01:28:30 +00:00
|
|
|
ensure => directory
|
|
|
|
}
|
2012-06-04 19:05:38 +00:00
|
|
|
|
|
|
|
init_d { 'god':
|
|
|
|
require => Gem['god']
|
|
|
|
}
|
2012-01-31 01:28:30 +00:00
|
|
|
}
|
|
|
|
|