redo users and ssh

This commit is contained in:
2023-12-22 18:57:01 -05:00
parent ee23c2db53
commit a07114ed85
13 changed files with 109 additions and 99 deletions

View File

@@ -0,0 +1,5 @@
# Managed by Saltstack
{% from "ssh/map.jinja" import ssh_users with context -%}
{% for comment, key in ssh_users[user]['authorized_keys'].items() -%}
{{ key }} {{ comment }}
{% endfor -%}

View File

@@ -0,0 +1,8 @@
# Managed by Saltstack
{%- from "ssh/map.jinja" import ssh_users with context %}
{%- for host, config in ssh_users[user]['ssh_hosts'].items() %}
Host {{ host }}
{%- for key, val in config.items() %}
{{ key }} {{ val }}
{%- endfor %}
{%- endfor %}