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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2644 by misc, Sun Feb 19 17:45:16 2012 UTC revision 2645 by misc, Mon Mar 19 20:36:17 2012 UTC
# Line 5  class puppet::thin { Line 5  class puppet::thin {
5      include apache::mod_proxy      include apache::mod_proxy
6    
7      apache::vhost_other_app { 'puppet_proxy':      apache::vhost_other_app { 'puppet_proxy':
8          vhost_file => 'puppet/apache_proxy_vhost.conf',          vhost_file => 'puppet/apache_proxy_vhost.conf',
9      }      }
10      
11      apache::config { "/etc/httpd/conf.d/puppet.conf":      apache::config { '/etc/httpd/conf.d/puppet.conf':
12          content => "Listen 8140",          content => 'Listen 8140',
13      }      }
14    
15      $service_name = 'thin_puppet_master'      $service_name = 'thin_puppet_master'
16      file { '/etc/puppet/thin.yml':      file { '/etc/puppet/thin.yml':
17          content => template('puppet/thin.yml'),          content => template('puppet/thin.yml'),
18          notify => Service[$service_name],          notify  => Service[$service_name],
19      }      }
20    
21      file { '/usr/local/share/puppet.config.ru':      file { '/usr/local/share/puppet.config.ru':
# Line 24  class puppet::thin { Line 24  class puppet::thin {
24    
25      service { $service_name:      service { $service_name:
26          provider => base,          provider => base,
27          require  => [Package['ruby-thin'],          require  => [ Package['ruby-thin'],
28                       File['/etc/puppet/thin.yml'],                        File['/etc/puppet/thin.yml'],
29                       File['/usr/local/share/puppet.config.ru']],                        File['/usr/local/share/puppet.config.ru']],
30          start    => 'thin -C /etc/puppet/thin.yml start',          start    => 'thin -C /etc/puppet/thin.yml start',
31          stop     => 'thin -C /etc/puppet/thin.yml stop',          stop     => 'thin -C /etc/puppet/thin.yml stop',
32          restart  => 'thin -C /etc/puppet/thin.yml restart',          restart  => 'thin -C /etc/puppet/thin.yml restart',

Legend:
Removed from v.2644  
changed lines
  Added in v.2645

  ViewVC Help
Powered by ViewVC 1.1.30