Skip to content

Commit

Permalink
refactor(topdir): use for include and require except init.sls
Browse files Browse the repository at this point in the history
* Make all `init.sls` imports relative since unnecessary there
  • Loading branch information
myii committed Feb 28, 2019
1 parent 2838bc9 commit a218e91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion template/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# vim: ft=sls

include:
- template.pkg
- .pkg
4 changes: 2 additions & 2 deletions template/pkg/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%- from topdir ~ "/macros.jinja" import files_switch with context %}
include:
- .install
- {{ topdir }}.pkg.install
template-config:
file.managed:
Expand All @@ -23,4 +23,4 @@ template-config:
- group: root
- template: jinja
- require:
- sls: {{ tpldot }}.install
- sls: {{ topdir }}.pkg.install
4 changes: 2 additions & 2 deletions template/pkg/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
{%- from topdir ~ "/map.jinja" import template with context %}
include:
- .config
- {{ topdir }}.pkg.config
template-service:
service.running:
- name: {{ template.service.name }}
- enable: True
- require:
- sls: {{ tpldot }}.config
- sls: {{ topdir }}.pkg.config

0 comments on commit a218e91

Please sign in to comment.