diff --git a/apache/init.sls b/apache/init.sls new file mode 100644 index 0000000..e899e60 --- /dev/null +++ b/apache/init.sls @@ -0,0 +1,13 @@ +{% set pkg = salt['grains.filter_by']({ + 'Debian': {'name': 'apache2'}, + 'RedHat': {'name': 'httpd'}, +}) %} + +apache: + pkg: + - installed + - name: {{ pkg.name }} + service: + - running + - name: {{ pkg.name }} + - enable: True