This commit is contained in:
root
2020-05-09 00:19:38 -04:00
parent e4b87cb50b
commit fc2ea8f76b
19 changed files with 182 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
# Managed by Salt
{% set comments = pillar['authorized_keys'].keys()|sort -%}
{% set comments = pillar['global_authorized_keys'].keys()|sort -%}
{% for comment in comments -%}
{% set keydata = pillar['authorized_keys'][comment] -%}
{% set keydata = pillar['global_authorized_keys'][comment] -%}
{{keydata}} {{comment}}
{% endfor -%}

View File

@@ -73,5 +73,7 @@ if [ $(id -u) -gt 0 ]; then
alias fab='sudo fab'
fi
alias random='< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-32};echo'
# https://git.keiran.us/config-mgmt/puppet/raw/commit/09158fc579f5ee2c00f395971d8c986e3ec08788/modules/keir/files/bash/bashrc

View File

@@ -33,7 +33,7 @@
- require:
- file: /root/.ssh
{% for user in salt.pillar.get('authkey_users', []) | union(salt.pillar.get('ssh_config_users', [])) %}
{% for user in salt.pillar.get('users', []) | union(salt.pillar.get('ssh_config_users', [])) %}
/home/{{user}}/.ssh:
file.directory:
@@ -57,7 +57,7 @@
{% endfor %}
{% for user in salt.pillar.get('authkey_users', []) %}
{% for user in salt.pillar.get('users', []) %}
/home/{{user}}/.ssh/authorized_keys:
file.managed: