Browse Source

Added basic formula to install Apache

master
Seth House 11 years ago
parent
commit
053c3443d7
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      apache/init.sls

+ 13
- 0
apache/init.sls View 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…
Cancel
Save