As it's now, redmine::default includes passenger_apache2::mod_rails, so the chef-client log goes:
Recipe: passenger_apache2::source
* package[httpd-devel] action install (up to date)
* package[libcurl-devel] action install (up to date)
* package[openssl-devel] action install (up to date)
* package[zlib-devel] action install (up to date)
* gem_package[passenger] action install (up to date)
* execute[passenger_module] action run (up to date)
Recipe: passenger_apache2::default
* file[/etc/httpd/mods-available/passenger.load] action create (up to date)
* execute[a2enmod passenger] action run (skipped due to not_if)
Recipe: passenger_apache2::mod_rails
* template[/etc/httpd/mods-available/passenger.conf] action create (up to date)
template[/etc/httpd/mods-available/passenger.conf] is created AFTER running execute[a2enmod passenger], and passenger.conf will not be linked to /etc/httpd/mods-enabled/passenger.conf.
But if redmine::default includes passenger_apache2::default, the chef-client log will be:
Recipe: passenger_apache2::source
* package[httpd-devel] action install (up to date)
* package[libcurl-devel] action install (up to date)
* package[openssl-devel] action install (up to date)
* package[zlib-devel] action install (up to date)
* gem_package[passenger] action install (up to date)
* execute[passenger_module] action run (up to date)
Recipe: passenger_apache2::mod_rails
* template[/etc/httpd/mods-available/passenger.conf] action create (up to date)
Recipe: passenger_apache2::default
* file[/etc/httpd/mods-available/passenger.load] action create (up to date)
* execute[a2enmod passenger] action run (skipped due to not_if)
template[/etc/httpd/mods-available/passenger.conf] will be created BEFORE running execute[a2enmod passenger], and passenger.conf will be linked to /etc/httpd/mods-enabled/passenger.conf.
As it's now,
redmine::default
includespassenger_apache2::mod_rails
, so the chef-client log goes:template[/etc/httpd/mods-available/passenger.conf]
is created AFTER runningexecute[a2enmod passenger]
, andpassenger.conf
will not be linked to/etc/httpd/mods-enabled/passenger.conf
.But if
redmine::default
includespassenger_apache2::default
, the chef-client log will be:template[/etc/httpd/mods-available/passenger.conf]
will be created BEFORE runningexecute[a2enmod passenger]
, andpassenger.conf
will be linked to/etc/httpd/mods-enabled/passenger.conf
.Platform tested:
Version tested: