juanje / cookbook-redmine

Chef's Cookbook for installing Redmine
25 stars 21 forks source link

include passenger_apache2::default rather than passenger_apache2::mod_rails #8

Open tily opened 11 years ago

tily commented 11 years ago

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.

Platform tested:

Version tested: