Skip to content

Commit a218e91

Browse files
committed
refactor(topdir): use for include and require except init.sls
* Make all `init.sls` imports relative since unnecessary there
1 parent 2838bc9 commit a218e91

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

template/init.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# vim: ft=sls
33

44
include:
5-
- template.pkg
5+
- .pkg

template/pkg/config.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{%- from topdir ~ "/macros.jinja" import files_switch with context %}
88
99
include:
10-
- .install
10+
- {{ topdir }}.pkg.install
1111
1212
template-config:
1313
file.managed:
@@ -23,4 +23,4 @@ template-config:
2323
- group: root
2424
- template: jinja
2525
- require:
26-
- sls: {{ tpldot }}.install
26+
- sls: {{ topdir }}.pkg.install

template/pkg/service.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
{%- from topdir ~ "/map.jinja" import template with context %}
77
88
include:
9-
- .config
9+
- {{ topdir }}.pkg.config
1010
1111
template-service:
1212
service.running:
1313
- name: {{ template.service.name }}
1414
- enable: True
1515
- require:
16-
- sls: {{ tpldot }}.config
16+
- sls: {{ topdir }}.pkg.config

0 commit comments

Comments
 (0)