{"action":"created","comment":{"url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/comments/73017139","id":73017139,"diff_hunk":"@@ -38,12 +38,18 @@ include:\n {{ print_name(identifier, key) }}:\n   ssh_auth.present:\n     {{ print_ssh_auth(identifier, key) }}\n+    {%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}\n+    - config: {{ pillar['sshd_config']['AuthorizedKeysFile'] }}\n+    {% endif -%}\n     - require:\n       - service: {{ openssh.service }}\n     {%- else %}\n {{ print_name(identifier, key) }}:\n   ssh_auth.absent:\n     {{ print_ssh_auth(identifier, key) }}\n+    {%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}\n+    - config: {{ pillar['sshd_config']['AuthorizedKeysFile'] }}","path":"openssh/auth.sls","position":14,"original_position":14,"commit_id":"f55445211c8247ffc706ee0f0a60753578553b0a","original_commit_id":"f55445211c8247ffc706ee0f0a60753578553b0a","user":{"login":"pepoluan","id":642259,"avatar_url":"https://avatars.githubusercontent.com/u/642259?v=3","gravatar_id":"","url":"https://api.github.com/users/pepoluan","html_url":"https://github.com/pepoluan","followers_url":"https://api.github.com/users/pepoluan/followers","following_url":"https://api.github.com/users/pepoluan/following{/other_user}","gists_url":"https://api.github.com/users/pepoluan/gists{/gist_id}","starred_url":"https://api.github.com/users/pepoluan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepoluan/subscriptions","organizations_url":"https://api.github.com/users/pepoluan/orgs","repos_url":"https://api.github.com/users/pepoluan/repos","events_url":"https://api.github.com/users/pepoluan/events{/privacy}","received_events_url":"https://api.github.com/users/pepoluan/received_events","type":"User","site_admin":false},"body":"You need to put the `{{ ... }}` part between single quotes, like this: `'{{ ... }}'`\r\n\r\nThe reason is a bit complex:\r\n\r\n- The `%` character has a special meaning in YAML\r\n- On line 26 of `pillar.example`, the `%` sign is quoted. So it becomes a normal character.\r\n- The whole line, without quotes, gets saved as the value of `pillar['sshd_config']['AuthorizedKeysFile']`\r\n- However in the `auth.sls` file, the content of the above gets inlined _without quotes_, resulting in (after Jinja rendering):\r\n\r\n        - config: %h/.ssh/authorized_keys\r\n\r\n- And this last construct -- which has an unquoted `%` sign -- makes YAML go haywire.\r\n","created_at":"2016-08-01T17:22:03Z","updated_at":"2016-08-01T17:22:03Z","html_url":"https://github.com/saltstack-formulas/openssh-formula/pull/51#discussion_r73017139","pull_request_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/comments/73017139"},"html":{"href":"https://github.com/saltstack-formulas/openssh-formula/pull/51#discussion_r73017139"},"pull_request":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51","id":50927102,"html_url":"https://github.com/saltstack-formulas/openssh-formula/pull/51","diff_url":"https://github.com/saltstack-formulas/openssh-formula/pull/51.diff","patch_url":"https://github.com/saltstack-formulas/openssh-formula/pull/51.patch","issue_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues/51","number":51,"state":"open","locked":false,"title":"Put ssh keys on configured path in sshd_config (AuthorizedKeysFile)","user":{"login":"mathieupotier","id":10141454,"avatar_url":"https://avatars.githubusercontent.com/u/10141454?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieupotier","html_url":"https://github.com/mathieupotier","followers_url":"https://api.github.com/users/mathieupotier/followers","following_url":"https://api.github.com/users/mathieupotier/following{/other_user}","gists_url":"https://api.github.com/users/mathieupotier/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieupotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieupotier/subscriptions","organizations_url":"https://api.github.com/users/mathieupotier/orgs","repos_url":"https://api.github.com/users/mathieupotier/repos","events_url":"https://api.github.com/users/mathieupotier/events{/privacy}","received_events_url":"https://api.github.com/users/mathieupotier/received_events","type":"User","site_admin":false},"body":"I had an issue during deploying ssh keys they wasn't going into the correct path.\r\n\r\nSigned-off-by: POTIER Mathieu <mathieu.potier@onzeway.eu>","created_at":"2015-11-17T10:14:16Z","updated_at":"2016-08-01T17:22:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eac2fa7e0d32846e7cfd270209c31022f03e9242","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51/commits","review_comments_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51/comments","review_comment_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues/51/comments","statuses_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/statuses/f55445211c8247ffc706ee0f0a60753578553b0a","head":{"label":"mathieupotier:master","ref":"master","sha":"f55445211c8247ffc706ee0f0a60753578553b0a","user":{"login":"mathieupotier","id":10141454,"avatar_url":"https://avatars.githubusercontent.com/u/10141454?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieupotier","html_url":"https://github.com/mathieupotier","followers_url":"https://api.github.com/users/mathieupotier/followers","following_url":"https://api.github.com/users/mathieupotier/following{/other_user}","gists_url":"https://api.github.com/users/mathieupotier/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieupotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieupotier/subscriptions","organizations_url":"https://api.github.com/users/mathieupotier/orgs","repos_url":"https://api.github.com/users/mathieupotier/repos","events_url":"https://api.github.com/users/mathieupotier/events{/privacy}","received_events_url":"https://api.github.com/users/mathieupotier/received_events","type":"User","site_admin":false},"repo":{"id":46337782,"name":"openssh-formula","full_name":"mathieupotier/openssh-formula","owner":{"login":"mathieupotier","id":10141454,"avatar_url":"https://avatars.githubusercontent.com/u/10141454?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieupotier","html_url":"https://github.com/mathieupotier","followers_url":"https://api.github.com/users/mathieupotier/followers","following_url":"https://api.github.com/users/mathieupotier/following{/other_user}","gists_url":"https://api.github.com/users/mathieupotier/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieupotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieupotier/subscriptions","organizations_url":"https://api.github.com/users/mathieupotier/orgs","repos_url":"https://api.github.com/users/mathieupotier/repos","events_url":"https://api.github.com/users/mathieupotier/events{/privacy}","received_events_url":"https://api.github.com/users/mathieupotier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mathieupotier/openssh-formula","description":"","fork":true,"url":"https://api.github.com/repos/mathieupotier/openssh-formula","forks_url":"https://api.github.com/repos/mathieupotier/openssh-formula/forks","keys_url":"https://api.github.com/repos/mathieupotier/openssh-formula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathieupotier/openssh-formula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathieupotier/openssh-formula/teams","hooks_url":"https://api.github.com/repos/mathieupotier/openssh-formula/hooks","issue_events_url":"https://api.github.com/repos/mathieupotier/openssh-formula/issues/events{/number}","events_url":"https://api.github.com/repos/mathieupotier/openssh-formula/events","assignees_url":"https://api.github.com/repos/mathieupotier/openssh-formula/assignees{/user}","branches_url":"https://api.github.com/repos/mathieupotier/openssh-formula/branches{/branch}","tags_url":"https://api.github.com/repos/mathieupotier/openssh-formula/tags","blobs_url":"https://api.github.com/repos/mathieupotier/openssh-formula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathieupotier/openssh-formula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathieupotier/openssh-formula/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathieupotier/openssh-formula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathieupotier/openssh-formula/statuses/{sha}","languages_url":"https://api.github.com/repos/mathieupotier/openssh-formula/languages","stargazers_url":"https://api.github.com/repos/mathieupotier/openssh-formula/stargazers","contributors_url":"https://api.github.com/repos/mathieupotier/openssh-formula/contributors","subscribers_url":"https://api.github.com/repos/mathieupotier/openssh-formula/subscribers","subscription_url":"https://api.github.com/repos/mathieupotier/openssh-formula/subscription","commits_url":"https://api.github.com/repos/mathieupotier/openssh-formula/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathieupotier/openssh-formula/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathieupotier/openssh-formula/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathieupotier/openssh-formula/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathieupotier/openssh-formula/contents/{+path}","compare_url":"https://api.github.com/repos/mathieupotier/openssh-formula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathieupotier/openssh-formula/merges","archive_url":"https://api.github.com/repos/mathieupotier/openssh-formula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathieupotier/openssh-formula/downloads","issues_url":"https://api.github.com/repos/mathieupotier/openssh-formula/issues{/number}","pulls_url":"https://api.github.com/repos/mathieupotier/openssh-formula/pulls{/number}","milestones_url":"https://api.github.com/repos/mathieupotier/openssh-formula/milestones{/number}","notifications_url":"https://api.github.com/repos/mathieupotier/openssh-formula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathieupotier/openssh-formula/labels{/name}","releases_url":"https://api.github.com/repos/mathieupotier/openssh-formula/releases{/id}","deployments_url":"https://api.github.com/repos/mathieupotier/openssh-formula/deployments","created_at":"2015-11-17T09:47:53Z","updated_at":"2015-11-17T09:47:54Z","pushed_at":"2015-11-18T19:35:11Z","git_url":"git://github.com/mathieupotier/openssh-formula.git","ssh_url":"git@github.com:mathieupotier/openssh-formula.git","clone_url":"https://github.com/mathieupotier/openssh-formula.git","svn_url":"https://github.com/mathieupotier/openssh-formula","homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","size":69,"stargazers_count":0,"watchers_count":0,"language":"SaltStack","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"saltstack-formulas:master","ref":"master","sha":"67e500fb11b5ac68aa538b45ece04be99ff7b9da","user":{"login":"saltstack-formulas","id":4683350,"avatar_url":"https://avatars.githubusercontent.com/u/4683350?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack-formulas","html_url":"https://github.com/saltstack-formulas","followers_url":"https://api.github.com/users/saltstack-formulas/followers","following_url":"https://api.github.com/users/saltstack-formulas/following{/other_user}","gists_url":"https://api.github.com/users/saltstack-formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack-formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack-formulas/subscriptions","organizations_url":"https://api.github.com/users/saltstack-formulas/orgs","repos_url":"https://api.github.com/users/saltstack-formulas/repos","events_url":"https://api.github.com/users/saltstack-formulas/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack-formulas/received_events","type":"Organization","site_admin":false},"repo":{"id":10653604,"name":"openssh-formula","full_name":"saltstack-formulas/openssh-formula","owner":{"login":"saltstack-formulas","id":4683350,"avatar_url":"https://avatars.githubusercontent.com/u/4683350?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack-formulas","html_url":"https://github.com/saltstack-formulas","followers_url":"https://api.github.com/users/saltstack-formulas/followers","following_url":"https://api.github.com/users/saltstack-formulas/following{/other_user}","gists_url":"https://api.github.com/users/saltstack-formulas/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack-formulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack-formulas/subscriptions","organizations_url":"https://api.github.com/users/saltstack-formulas/orgs","repos_url":"https://api.github.com/users/saltstack-formulas/repos","events_url":"https://api.github.com/users/saltstack-formulas/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack-formulas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/saltstack-formulas/openssh-formula","description":"","fork":false,"url":"https://api.github.com/repos/saltstack-formulas/openssh-formula","forks_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/forks","keys_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/teams","hooks_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/hooks","issue_events_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues/events{/number}","events_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/events","assignees_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/assignees{/user}","branches_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/branches{/branch}","tags_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/tags","blobs_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/git/refs{/sha}","trees_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/statuses/{sha}","languages_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/languages","stargazers_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/stargazers","contributors_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/contributors","subscribers_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/subscribers","subscription_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/subscription","commits_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/commits{/sha}","git_commits_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/git/commits{/sha}","comments_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/comments{/number}","issue_comment_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues/comments{/number}","contents_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/contents/{+path}","compare_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/merges","archive_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/downloads","issues_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues{/number}","pulls_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls{/number}","milestones_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/milestones{/number}","notifications_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/labels{/name}","releases_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/releases{/id}","deployments_url":"https://api.github.com/repos/saltstack-formulas/openssh-formula/deployments","created_at":"2013-06-12T22:16:16Z","updated_at":"2016-07-20T08:47:50Z","pushed_at":"2016-08-01T17:14:30Z","git_url":"git://github.com/saltstack-formulas/openssh-formula.git","ssh_url":"git@github.com:saltstack-formulas/openssh-formula.git","clone_url":"https://github.com/saltstack-formulas/openssh-formula.git","svn_url":"https://github.com/saltstack-formulas/openssh-formula","homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","size":129,"stargazers_count":38,"watchers_count":38,"language":"SaltStack","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":178,"mirror_url":null,"open_issues_count":3,"forks":178,"open_issues":3,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51"},"html":{"href":"https://github.com/saltstack-formulas/openssh-formula/pull/51"},"issue":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues/51"},"comments":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/saltstack-formulas/openssh-formula/statuses/f55445211c8247ffc706ee0f0a60753578553b0a"}}}}
{"actor":{"display_login":"pepoluan"}}