blob: 1ca03a7e609ac6def12e594f6ccdde6046086dcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
class puppet::thin {
package { 'ruby-thin': }
include apache::base
include apache::mod::ssl
include apache::mod::proxy
apache::vhost::other_app { 'puppet_proxy':
vhost_file => 'puppet/apache_proxy_vhost.conf',
}
apache::config { "${apache::base::conf_d}/puppet.conf":
content => 'Listen 8140',
}
$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',
}
}
|