try to fix forbidden jinja syntax 2
This commit is contained in:
parent
364f477f7d
commit
317f327b51
1 changed files with 5 additions and 5 deletions
|
@ -34,13 +34,13 @@ system_base_os-release:
|
||||||
- source: salt://{{ tpldir }}/files/base_os-release.jinja
|
- source: salt://{{ tpldir }}/files/base_os-release.jinja
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
OS_VERSION: {{ OS_VERSION }}}
|
OS_VERSION: {{ OS_VERSION }}
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: '0644'
|
- mode: '0644'
|
||||||
|
|
||||||
{% set NAME = salt['cmd.shell']('grep -E ^NAME /etc/os-release | cut -d= -f2 | sed \'s|"||g\'') %}
|
{% set OS_NAME = salt['cmd.shell']('grep -E ^NAME /etc/os-release | cut -d= -f2 | sed \'s|"||g\'') %}
|
||||||
{% set VERSION_ID = salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2 | sed \'s|"||g\'') %}
|
{% set OS_VERSION_ID = salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2 | sed \'s|"||g\'') %}
|
||||||
|
|
||||||
system_base_motd:
|
system_base_motd:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
@ -48,8 +48,8 @@ system_base_motd:
|
||||||
- source: salt://{{ tpldir }}/files/base_motd.jinja
|
- source: salt://{{ tpldir }}/files/base_motd.jinja
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
OS: {{ NAME }}
|
OS: {{ OS_NAME }}
|
||||||
OS_VERSION: {{ VERSION_ID }}
|
OS_VERSION: {{ OS_VERSION_ID }}
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: '0644'
|
- mode: '0644'
|
||||||
|
|
Loading…
Reference in a new issue