File tree Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Expand file tree Collapse file tree 5 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 2
2
# vim: ft=sls
3
3
4
4
include:
5
- - template.install
6
- - template.config
7
- - template.service
5
+ - template.pkg
Original file line number Diff line number Diff line change 2
2
# vim: ft=sls
3
3
4
4
{%- set topdir = tpldir.split(' /' )[0 ] %}
5
- {%- from tpldir ~ " /map.jinja" import template with context % }
6
- {%- from tpldir ~ " /macros.jinja" import files_switch with context % }
5
+ {%- from salt[ ' file.dirname ' ]( tpldir) ~ " /map.jinja" import template with context % }
6
+ {%- from salt[ ' file.dirname ' ]( tpldir) ~ " /macros.jinja" import files_switch with context % }
7
7
8
8
include:
9
- - template .install
9
+ - .install
10
10
11
11
template- config:
12
12
file .managed:
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # vim: ft=sls
3
+
4
+ include:
5
+ - .install
6
+ - .config
7
+ - .service
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {%- from tpldir ~ " /map.jinja" import template with context % }
4
+ {%- from salt[ ' file.dirname ' ]( tpldir) ~ " /map.jinja" import template with context % }
5
5
6
6
template- pkg:
7
7
pkg.installed:
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {%- from tpldir ~ " /map.jinja" import template with context % }
4
+ {%- from salt[ ' file.dirname ' ]( tpldir) ~ " /map.jinja" import template with context % }
5
5
6
6
include:
7
- - template .config
7
+ - .config
8
8
9
9
template- name:
10
10
service.running:
You can’t perform that action at this time.
0 commit comments