Skip to content

Instantly share code, notes, and snippets.

@gravyboat
Created October 16, 2013 16:55
Show Gist options
  • Save gravyboat/7011104 to your computer and use it in GitHub Desktop.
Save gravyboat/7011104 to your computer and use it in GitHub Desktop.
apache if statement.
{% if grains['os'] == 'Ubuntu' %}
apache:
{% elif grains['os'] == 'CentOs' %}
httpd:
{% endif %}
pkg:
- installed
service:
- running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment