Bladeren bron

Merge pull request #125 from aboe76/python3_support

fix iteritems for python3
master
Javier Bértoli 6 jaren geleden
bovenliggende
commit
fdc3ca398d
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +3
    -3
      openssh/auth_map.sls

+ 3
- 3
openssh/auth_map.sls Bestand weergeven

@@ -5,11 +5,11 @@ include:
{%- set openssh_pillar = salt["pillar.get"]("openssh", {}) -%}
{%- 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"] %}
# SSH store openssh:auth_map:{{ store }}
{%- for user, keys in config.get("users", {}).iteritems() %}
{%- for key, key_cfg in keys.iteritems() %}
{%- for user, keys in config.get("users", {}).items() %}
{%- for key, key_cfg in keys.items() %}
"ssh_auth--{{ store }}--{{ user }}--{{ key }}":
{%- set present = key_cfg.get("present", True) %}
{%- set options = key_cfg.get("options", []) %}

Laden…
Annuleren
Opslaan