Skip to content

Instantly share code, notes, and snippets.

@szicari-cars
Created November 8, 2013 16:35
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 szicari-cars/6c3601d169adf7b264a6 to your computer and use it in GitHub Desktop.
Save szicari-cars/6c3601d169adf7b264a6 to your computer and use it in GitHub Desktop.
# This salt state will verify apache2 is installed & running.
# No modules will be installed, no configurations will be expected
apache-server:
pkg.installed:
{% if grains['os'] == 'Ubuntu' %}
- name: apache2
{% else %}
- name: httpd
{% endif %}
service:
{% if grains['os'] == 'Ubuntu' %}
- name: apache2
{% else %}
- name: httpd
{% endif %}
- running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment