Skip to content

Instantly share code, notes, and snippets.

@cmeisinger
Created July 2, 2013 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmeisinger/6ddd3a7b55571762b123 to your computer and use it in GitHub Desktop.
Save cmeisinger/6ddd3a7b55571762b123 to your computer and use it in GitHub Desktop.
run-passenger-install-apache2-mod:
cmd.run:
- name: PATH=/usr/local/bin:$PATH passenger-install-apache2-module -a
- runas: root
- cwd: /
{% if pillar['apache-config']['passenger_version'] < '4' %}
- unless: stat $(PATH=/usr/local/bin:$PATH passenger-config --root)/ext/apache2/mod_passenger.so
{% elif pillar['apache-config']['passenger_version'] >= '4' %}
- unless: stat $(PATH=/usr/local/bin:$PATH passenger-config --root)/libout/apache2/mod_passenger.so
{% endif %}
- require:
- gem: passenger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment