Bläddra i källkod

Changed 'contents' to 'contents_pillar' to correctly parse newlines for private/public SSH keys.

lookup-fix-3
Greg Shikhman 11 år sedan
förälder
incheckning
097b814f67
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      users/init.sls

+ 2
- 2
users/init.sls Visa fil

@@ -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', []) %}

Laddar…
Avbryt
Spara