Skip to content

Commit

Permalink
fix(tpl_path): replace slspath to tplroot
Browse files Browse the repository at this point in the history
  • Loading branch information
sticky-note committed Feb 12, 2020
1 parent d2d5186 commit bbcc4cd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion salt/cloud.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set tplroot = tpldir.split('/')[0] %}
{% from "salt/map.jinja" import salt_settings with context %}
{%- if salt_settings.use_pip %}
Expand Down Expand Up @@ -34,7 +35,7 @@ salt-cloud:
cloud-cert-{{ cert }}-pem:
file.managed:
- name: {{ salt_settings.config_path }}/pki/cloud/{{ cert }}.pem
- source: salt://{{ slspath }}/files/key
- source: salt://{{ tplroot }}/files/key
- template: jinja
- user: root
- group:
Expand Down
2 changes: 1 addition & 1 deletion salt/master.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ salt-master:
}}
{%- else %}
- template: jinja
- source: salt://{{ slspath }}/files/master.d
- source: salt://{{ tplroot }}/files/master.d
{%- endif %}
- clean: {{ salt_settings.clean_config_d_dir }}
- exclude_pat: _*
Expand Down
2 changes: 1 addition & 1 deletion salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ salt-minion:
}}
{%- else %}
- template: jinja
- source: salt://{{ slspath }}/files/minion.d
- source: salt://{{ tplroot }}/files/minion.d
- context:
standalone: False
{%- endif %}
Expand Down
3 changes: 2 additions & 1 deletion salt/ssh.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set tplroot = tpldir.split('/')[0] %}
{% from "salt/map.jinja" import salt_settings with context %}
{% if salt_settings.install_packages %}
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion salt/standalone.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%- set tplroot = tpldir.split('/')[0] %}
{% from "salt/map.jinja" import salt_settings with context %}
salt-minion:
Expand All @@ -11,7 +12,7 @@ salt-minion:
file.recurse:
- name: {{ salt_settings.config_path }}/minion.d
- template: jinja
- source: salt://{{ slspath }}/files/minion.d
- source: salt://{{ tplroot }}/files/minion.d
- clean: {{ salt_settings.clean_config_d_dir }}
- exclude_pat: _*
- context:
Expand Down

0 comments on commit bbcc4cd

Please sign in to comment.