瀏覽代碼

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

Changed 'contents' to 'contents_pillar' to correctly parse newlines for private/public SSH keys.
tags/v0.45.0
Forrest 11 年之前
父節點
當前提交
56ca792f84
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      users/init.sls

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

Loading…
取消
儲存