Created
July 12, 2017 09:59
-
-
Save anonymous/133df8fad398a2290ef8d8447a7733ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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