From 58e968916e18dc142c0061ff20ca4f285c4f538a Mon Sep 17 00:00:00 2001 From: Oleksandr Porunov Date: Tue, 28 Mar 2017 16:15:44 +0300 Subject: [PATCH] Add uninstall state --- apache/uninstall.sls | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apache/uninstall.sls diff --git a/apache/uninstall.sls b/apache/uninstall.sls new file mode 100644 index 0000000..547d19d --- /dev/null +++ b/apache/uninstall.sls @@ -0,0 +1,11 @@ +{% from "apache/map.jinja" import apache with context %} + +apache-uninstall: + service.dead: + - name: {{ apache.service }} + - enable: False + pkg.removed: + - pkgs: + - {{ apache.server }} + - require: + - service: apache-uninstall \ No newline at end of file