Added basic formula to install Apache
This commit is contained in:
parent
0e86fb8c9d
commit
053c3443d7
13
apache/init.sls
Normal file
13
apache/init.sls
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user