Skip to content

Instantly share code, notes, and snippets.

Created July 12, 2017 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/133df8fad398a2290ef8d8447a7733ca to your computer and use it in GitHub Desktop.
Save anonymous/133df8fad398a2290ef8d8447a7733ca to your computer and use it in GitHub Desktop.
{% set users = pillar['users'] %}
{% for user in users %}
{% set ssh_pub_key = 'ssh_pub_keys/' + user_name + '.pub' %}
user_ssh_pub_key_{{ user_name }}:
ssh_auth.present:
- user: root
- source: salt://ssh_keys/{{ user_name }}.id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment