From 097b814f679accb21479b4d864255e00f74ad921 Mon Sep 17 00:00:00 2001 From: Greg Shikhman Date: Sun, 16 Feb 2014 23:34:47 -0500 Subject: [PATCH] Changed 'contents' to 'contents_pillar' to correctly parse newlines for private/public SSH keys. --- users/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/init.sls b/users/init.sls index 2a0e89b..9a54d79 100644 --- a/users/init.sls +++ b/users/init.sls @@ -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', []) %}