-
-
Save szicari-cars/6c3601d169adf7b264a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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