Skip to content

Commit

Permalink
feat(pkg): add clean states
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 24, 2019
1 parent 150e9f8 commit b203bb5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions template/pkg/clean.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# vim: ft=sls

{%- from salt['file.dirname'](tpldir) ~ "/map.jinja" import template with context %}
template-service-dead:
service.dead:
- name: {{ template.service.name }}
- enable: True
template-config-absent:
file.absent:
- name: {{ template.config }}
- require:
- service: template-service-dead
template-pkg-removed:
pkg.removed:
- name: {{ template.pkg }}
- require:
- file: template-config-absent

0 comments on commit b203bb5

Please sign in to comment.