Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Configure dependencies and notifications #16

Merged
merged 3 commits into from

2 participants

@phemmer

(resubmission of pull request 14)

This fixes 2 issues.

  1. It prevents enabling the module if the compilation failed. Otherwise if compilation fails, apache will generate an error when it tries to start and the binary doesn't exist.

  2. Sets up notifications so that if the config is updated, apache reloads.

@apenney apenney merged commit 766b48f into puppetlabs:master
@apenney

Only 11 months late, I'm on perimeter time. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 manifests/init.pp
View
6 manifests/init.pp
@@ -65,6 +65,7 @@
owner => '0',
group => '0',
mode => '0644',
+ notify => Service['httpd'],
}
file { '/etc/apache2/mods-available/passenger.conf':
@@ -73,6 +74,7 @@
owner => '0',
group => '0',
mode => '0644',
+ notify => Service['httpd'],
}
file { '/etc/apache2/mods-enabled/passenger.load':
@@ -81,7 +83,8 @@
owner => '0',
group => '0',
mode => '0777',
- require => File['/etc/apache2/mods-available/passenger.load'],
+ require => [ File['/etc/apache2/mods-available/passenger.load'], Exec['compile-passenger'], ],
+ notify => Service['httpd'],
}
file { '/etc/apache2/mods-enabled/passenger.conf':
@@ -91,6 +94,7 @@
group => '0',
mode => '0777',
require => File['/etc/apache2/mods-available/passenger.conf'],
+ notify => Service['httpd'],
}
}
'redhat': {
Something went wrong with that request. Please try again.