Skip to content

Commit

Permalink
feat(pkg): use require requisite between pkg states
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 24, 2019
1 parent 0822ec8 commit 150e9f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions template/pkg/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ template-config:
- user: root
- group: root
- template: jinja
- require:
- sls: {{ tpldot }}.install
4 changes: 3 additions & 1 deletion template/pkg/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
include:
- .config
template-name:
template-service:
service.running:
- name: {{ template.service.name }}
- enable: True
- require:
- sls: {{ tpldot }}.config

0 comments on commit 150e9f8

Please sign in to comment.