diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-19 17:45:16 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-19 17:45:16 +0000 |
commit | 2a1220a9e1c3a961593b1b8665870ada383e0446 (patch) | |
tree | 500c809b5c3292b4a2d6c6446f39702b0f6c6697 /modules | |
parent | 8e91ac4c012e3c7aea307b237091ff1f4099d864 (diff) | |
download | puppet-2a1220a9e1c3a961593b1b8665870ada383e0446.tar puppet-2a1220a9e1c3a961593b1b8665870ada383e0446.tar.gz puppet-2a1220a9e1c3a961593b1b8665870ada383e0446.tar.bz2 puppet-2a1220a9e1c3a961593b1b8665870ada383e0446.tar.xz puppet-2a1220a9e1c3a961593b1b8665870ada383e0446.zip |
add service for the thin application server
Diffstat (limited to 'modules')
-rw-r--r-- | modules/puppet/manifests/thin.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/puppet/manifests/thin.pp b/modules/puppet/manifests/thin.pp index 8835353f..1ed6dbdf 100644 --- a/modules/puppet/manifests/thin.pp +++ b/modules/puppet/manifests/thin.pp @@ -15,9 +15,20 @@ class puppet::thin { $service_name = 'thin_puppet_master' file { '/etc/puppet/thin.yml': content => template('puppet/thin.yml'), + notify => Service[$service_name], } file { '/usr/local/share/puppet.config.ru': content => template('puppet/config.ru'), } + + service { $service_name: + provider => base, + require => [Package['ruby-thin'], + File['/etc/puppet/thin.yml'], + File['/usr/local/share/puppet.config.ru']], + start => 'thin -C /etc/puppet/thin.yml start', + stop => 'thin -C /etc/puppet/thin.yml stop', + restart => 'thin -C /etc/puppet/thin.yml restart', + } } |