From f012765ee46b1dd120e03e912fb1d5dfbdfe7c8f Mon Sep 17 00:00:00 2001 From: Oleksandr Porunov Date: Tue, 28 Mar 2017 16:51:02 +0300 Subject: [PATCH] Add uninstall state --- memcached/uninstall.sls | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 memcached/uninstall.sls diff --git a/memcached/uninstall.sls b/memcached/uninstall.sls new file mode 100644 index 0000000..aa82048 --- /dev/null +++ b/memcached/uninstall.sls @@ -0,0 +1,11 @@ +{% from 'memcached/map.jinja' import memcached with context %} + +memcached-uninstall: + service.dead: + - name: {{ memcached.service }} + - enable: False + pkg.removed: + - pkgs: + - {{ memcached.server }} + - require: + - service: memcached-uninstall