mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
Added basic formula to install Apache
This commit is contained in:
parent
0e86fb8c9d
commit
053c3443d7
1 changed files with 13 additions and 0 deletions
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…
Add table
Reference in a new issue