0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2024-11-28 01:18:12 +01:00

fix iteritems for python3

This commit is contained in:
Niels Abspoel 2018-03-10 16:35:57 +01:00
parent 6ccb9fc87d
commit af9721a0f5

View File

@ -5,11 +5,11 @@ include:
{%- set openssh_pillar = salt["pillar.get"]("openssh", {}) -%} {%- set openssh_pillar = salt["pillar.get"]("openssh", {}) -%}
{%- set authorized_keys_file = salt["pillar.get"]("sshd_config:AuthorizedKeysFile", None) %} {%- set authorized_keys_file = salt["pillar.get"]("sshd_config:AuthorizedKeysFile", None) %}
{%- for store, config in salt["pillar.get"]("openssh:auth_map", {}).iteritems() %} {%- for store, config in salt["pillar.get"]("openssh:auth_map", {}).items() %}
{%- set store_base = config["source"] %} {%- set store_base = config["source"] %}
# SSH store openssh:auth_map:{{ store }} # SSH store openssh:auth_map:{{ store }}
{%- for user, keys in config.get("users", {}).iteritems() %} {%- for user, keys in config.get("users", {}).items() %}
{%- for key, key_cfg in keys.iteritems() %} {%- for key, key_cfg in keys.items() %}
"ssh_auth--{{ store }}--{{ user }}--{{ key }}": "ssh_auth--{{ store }}--{{ user }}--{{ key }}":
{%- set present = key_cfg.get("present", True) %} {%- set present = key_cfg.get("present", True) %}
{%- set options = key_cfg.get("options", []) %} {%- set options = key_cfg.get("options", []) %}