aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/puppet/manifests/thin.pp11
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',
+ }
}