fix(tpl_path): replace slspath to tplroot

This commit is contained in:
sticky-note committed 2020-02-13 09:43:25 +11:00
1 parent d2d51864a5
commit bbcc4cda7a
5 files changed
+8 -5

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
{%- set tplroot = tpldir.split('/')[0] %}
{% from "salt/map.jinja" import salt_settings with context %}
{% if salt_settings.install_packages %}
@@ -12,7 +13,7 @@ ensure-salt-ssh-is-installed:
ensure-roster-config:
file.managed:
- name: {{ salt_settings.config_path }}/roster
- source: salt://{{ slspath }}/files/roster.jinja
- source: salt://{{ tplroot }}/files/roster.jinja
- template: jinja
{% if salt_settings.install_packages %}
- require: