Przeglądaj źródła

fix(jinja): encode context as json

Or with python2 the template are generated with `u'<string>'`.
tags/v1.2.0
Daniel Dehennin 4 lat temu
rodzic
commit
7a1f6199d0
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +2
    -2
      openssh/config.sls
  2. +1
    -1
      openssh/known_hosts.sls

+ 2
- 2
openssh/config.sls Wyświetl plik

@@ -17,7 +17,7 @@ sshd_config:
) }}
- template: jinja
- context:
sshd_config: {{ sshd_config }}
sshd_config: {{ sshd_config | json }}
- user: {{ openssh.sshd_config_user }}
- group: {{ openssh.sshd_config_group }}
- mode: {{ openssh.sshd_config_mode }}
@@ -40,7 +40,7 @@ ssh_config:
) }}
- template: jinja
- context:
ssh_config: {{ ssh_config }}
ssh_config: {{ ssh_config | json }}
- user: {{ openssh.ssh_config_user }}
- group: {{ openssh.ssh_config_group }}
- mode: {{ openssh.ssh_config_mode }}

+ 1
- 1
openssh/known_hosts.sls Wyświetl plik

@@ -15,7 +15,7 @@ manage ssh_known_hosts file:
) }}
- template: jinja
- context:
known_hosts: {{ openssh | traverse("known_hosts", {}) }}
known_hosts: {{ openssh | traverse("known_hosts", {}) | json }}
- user: root
- group: {{ openssh.ssh_config_group }}
- mode: 644

Ładowanie…
Anuluj
Zapisz