2012-01-31 01:28:30 +00:00
|
|
|
class god {
|
|
|
|
gem { 'god':
|
|
|
|
path => "${ruby::path}:${base::path}",
|
|
|
|
ensure => present,
|
2012-06-23 02:02:08 +00:00
|
|
|
require => Class['ruby']
|
2012-01-31 01:28:30 +00:00
|
|
|
}
|
|
|
|
|
2012-06-23 02:02:08 +00:00
|
|
|
$bin = "${ruby::path}//god"
|
2012-05-02 22:17:23 +00:00
|
|
|
$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
|
|
|
}
|
|
|
|
|