From 053c3443d7826ac55c6d564ae09d387a18d09cf6 Mon Sep 17 00:00:00 2001 From: Seth House Date: Tue, 13 Aug 2013 15:03:16 -0600 Subject: [PATCH] Added basic formula to install Apache --- apache/init.sls | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apache/init.sls 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