/[adm]/puppet/modules/puppet/manifests/thin.pp
ViewVC logotype

Contents of /puppet/modules/puppet/manifests/thin.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2695 - (show annotations) (download)
Sun Mar 25 13:22:08 2012 UTC (12 years ago) by misc
File size: 995 byte(s)
fix module invaocation after split
1 class puppet::thin {
2 package { 'ruby-thin': }
3
4 include apache::mod::ssl
5 include apache::mod::proxy
6
7 apache::vhost::other_app { 'puppet_proxy':
8 vhost_file => 'puppet/apache_proxy_vhost.conf',
9 }
10
11 apache::config { '/etc/httpd/conf.d/puppet.conf':
12 content => 'Listen 8140',
13 }
14
15 $service_name = 'thin_puppet_master'
16 file { '/etc/puppet/thin.yml':
17 content => template('puppet/thin.yml'),
18 notify => Service[$service_name],
19 }
20
21 file { '/usr/local/share/puppet.config.ru':
22 content => template('puppet/config.ru'),
23 }
24
25 service { $service_name:
26 provider => base,
27 require => [ Package['ruby-thin'],
28 File['/etc/puppet/thin.yml'],
29 File['/usr/local/share/puppet.config.ru']],
30 start => 'thin -C /etc/puppet/thin.yml start',
31 stop => 'thin -C /etc/puppet/thin.yml stop',
32 restart => 'thin -C /etc/puppet/thin.yml restart',
33 }
34 }

  ViewVC Help
Powered by ViewVC 1.1.30