redo users and ssh
This commit is contained in:
5
ssh/files/authorized_keys.jinja
Normal file
5
ssh/files/authorized_keys.jinja
Normal 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 -%}
|
||||
8
ssh/files/ssh_hosts.jinja
Normal file
8
ssh/files/ssh_hosts.jinja
Normal 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 %}
|
||||
Reference in New Issue
Block a user