0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-27 22:38:34 +01:00

Merge pull request #17 from cornmander/fixed-pubkey-privkey-contents

Changed 'contents' to 'contents_pillar' to correctly parse newlines for private/public SSH keys.
This commit is contained in:
Forrest 2014-02-16 22:10:08 -07:00
commit 56ca792f84

View File

@ -84,7 +84,7 @@ user_{{ name }}_private_key:
- user: {{ name }}
- group: {{ user_group }}
- mode: 600
- contents: {{ user['ssh_keys']['privkey'] }}
- contents_pillar: users:{{ name }}:ssh_keys:privkey
- require:
- user: {{ name }}_user
{% for group in user.get('groups', []) %}
@ -96,7 +96,7 @@ user_{{ name }}_public_key:
- user: {{ name }}
- group: {{ user_group }}
- mode: 644
- contents: {{ user['ssh_keys']['pubkey'] }}
- contents_pillar: users:{{ name }}:ssh_keys:privkey
- require:
- user: {{ name }}_user
{% for group in user.get('groups', []) %}