diff options
author | Micah Anderson <micah@riseup.net> | 2012-08-22 14:22:52 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-08-22 14:22:52 -0400 |
commit | 6af581ed82a908c6b1fdc8e17bda30a85c8b9d71 (patch) | |
tree | 27bfa1daf28400f5cd6e87401a5e85156a733e73 /manifests/puppetmaster | |
parent | 1d3e2b5bd6788894c49d8db6ab65f67b0540b87d (diff) | |
parent | dcf1036eb3b8f8d90eef208dd7766b1602b2b2e3 (diff) |
Merge branch 'leap' into tmp
Diffstat (limited to 'manifests/puppetmaster')
-rw-r--r-- | manifests/puppetmaster/linux.pp | 4 | ||||
-rw-r--r-- | manifests/puppetmaster/package/debian.pp | 6 | ||||
-rw-r--r-- | manifests/puppetmaster/passenger.pp | 29 |
3 files changed, 27 insertions, 12 deletions
diff --git a/manifests/puppetmaster/linux.pp b/manifests/puppetmaster/linux.pp index 5cde0c3..7c2e428 100644 --- a/manifests/puppetmaster/linux.pp +++ b/manifests/puppetmaster/linux.pp @@ -6,8 +6,10 @@ class puppet::puppetmaster::linux inherits puppet::linux { exec { 'notify_passenger_puppetmaster': refreshonly => true, - command => 'touch /etc/puppet/rack/tmp/restart.txt && sleep 1 && rm /etc/puppet/rack/tmp/restart.txt', + #command => 'touch /etc/puppet/rack/tmp/restart.txt && sleep 1 && rm /etc/puppet/rack/tmp/restart.txt', + command => '/etc/init.d/apache2 reload', } + } else { service { 'puppetmaster': ensure => running, diff --git a/manifests/puppetmaster/package/debian.pp b/manifests/puppetmaster/package/debian.pp index 33d7d5e..21407bb 100644 --- a/manifests/puppetmaster/package/debian.pp +++ b/manifests/puppetmaster/package/debian.pp @@ -1,6 +1,6 @@ class puppet::puppetmaster::package::debian inherits puppet::puppetmaster::package { - Package['puppetmaster']{ - require => Package['puppetmaster-common'] - } + #Package['puppetmaster']{ + # require => Package['puppetmaster-common'] + #} } diff --git a/manifests/puppetmaster/passenger.pp b/manifests/puppetmaster/passenger.pp index c4bc062..9f4d1e8 100644 --- a/manifests/puppetmaster/passenger.pp +++ b/manifests/puppetmaster/passenger.pp @@ -7,14 +7,27 @@ class puppet::puppetmaster::passenger inherits puppet::puppetmaster::base { # A reference configuration is available at : # http://github.com/reductivelabs/puppet/tree/master/ext/rack - file { - ['/etc/puppet/rack', '/etc/puppet/rack/public', '/etc/puppet/rack/tmp']: - ensure => directory, - owner => root, group => 0, mode => 0755; + case $operatingsystem { + debian: { + package { 'puppetmaster-passenger': ensure => installed } + file { + '/usr/share/puppet/rack/puppetmasterd/config.ru': + source => [ 'puppet:///modules/site-puppet/master/config.ru', + 'puppet:///modules/puppet/master/config.ru' ], + owner => puppet, group => 0, mode => '0644'; + } + } + default: { + file { + ['/etc/puppet/rack', '/etc/puppet/rack/public', '/etc/puppet/rack/tmp']: + ensure => directory, + owner => root, group => 0, mode => '0755'; - '/etc/puppet/rack/config.ru': - source => [ "puppet:///modules/site-puppet/master/config.ru", - "puppet:///modules/puppet/master/config.ru" ], - owner => puppet, group => 0, mode => 0644; + '/etc/puppet/rack/config.ru': + source => [ 'puppet:///modules/site-puppet/master/config.ru', + 'puppet:///modules/puppet/master/config.ru' ], + owner => puppet, group => 0, mode => '0644'; + } + } } } |