{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/comments/56110761","id":56110761,"diff_hunk":"@@ -0,0 +1,64 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+\n+<keystone-v2 xmlns=\"http://docs.openrepose.org/repose/keystone-v2/v1.0\">\n+    <identity-service\n+        username=\"<%= @username %>\"\n+        password=\"<%= @password %>\"\n+        uri=\"<%= @uri %>\"\n+        connection-pool-id=\"<%= @pool %>\"\n+        set-roles-in-header=\"<%= @roles_in_header %>\"\n+        set-groups-in-header=\"<%= @groups_in_header %>\"\n+        set-catalog-in-header=\"<%= @catalog_in_header %>\"\n+        />    \n+    <% if @delegating_quality %>\n+    <delegating quality=\"<%= @delegating_quality %>\" /> \n+    <% end %>\n+    \n+    <% if @white_list %>\n+    <white-list>\n+\t<% @white_list.each do | uri_regex | %>\n+        <uri-pattern uri-regex=\"<%= uri_regex %>\" />\n+\t<% end %>\n+    </white-list>\n+    <% end %>\n+\n+    <% if @cache %>\n+     <cache>\n+        <timeouts variability=\"<%= @cache['timeout_variability'] %>\">\n+            <token><%= @cache['token_timeout'] %></token>\n+\t    <group><%= @cache['group_timeout'] %></group>\n+\t    <endpoints><%= @cache['endpoints_timeout'] %></endpoints>\n+        </timeouts>\n+          <% if @cache['atom_feeds']\n+\t  @cache['atom_feeds'].each do | atom_feed | %>\n+        <atom-feed id=\"<%= atom_feed %>\"/>\n+          <% end\n+\t    end %>\n+    </cache>\n+    <% end %>\n+\n+    <% if @tenant_handling %>\n+    <tenant-handling send-all-tenant-ids=\"<%= @tenant_handling['send_all_tenant_ids'] %>\">\n+        <% if @tenant_handling['validate_tenant'] %>\n+        <validate-tenant strip-token-tenant-prefixes=\"<%= @@tenant_handling['validate_tenant']['strip_token_tenant_prefixes'] %>\">","path":"templates/default/keystone-v2.cfg.xml.erb","position":43,"original_position":43,"commit_id":"791b9eaeb55f86ea32b905fd606834160f7724da","original_commit_id":"791b9eaeb55f86ea32b905fd606834160f7724da","user":{"login":"jamesyli","id":126023,"avatar_url":"https://avatars.githubusercontent.com/u/126023?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesyli","html_url":"https://github.com/jamesyli","followers_url":"https://api.github.com/users/jamesyli/followers","following_url":"https://api.github.com/users/jamesyli/following{/other_user}","gists_url":"https://api.github.com/users/jamesyli/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesyli/subscriptions","organizations_url":"https://api.github.com/users/jamesyli/orgs","repos_url":"https://api.github.com/users/jamesyli/repos","events_url":"https://api.github.com/users/jamesyli/events{/privacy}","received_events_url":"https://api.github.com/users/jamesyli/received_events","type":"User","site_admin":false},"body":"`strip-token-tenant-prefixes` is optional. we might need to make it default to `nil` and add an `if` condition here.","created_at":"2016-03-15T03:22:07Z","updated_at":"2016-03-15T03:22:07Z","html_url":"https://github.com/rackerlabs/cookbook-repose/pull/46#discussion_r56110761","pull_request_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/comments/56110761"},"html":{"href":"https://github.com/rackerlabs/cookbook-repose/pull/46#discussion_r56110761"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46","id":61760667,"html_url":"https://github.com/rackerlabs/cookbook-repose/pull/46","diff_url":"https://github.com/rackerlabs/cookbook-repose/pull/46.diff","patch_url":"https://github.com/rackerlabs/cookbook-repose/pull/46.patch","issue_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/46","number":46,"state":"open","locked":false,"title":"Add keystone-v2 to repose cookbook","user":{"login":"dimtruck","id":1155525,"avatar_url":"https://avatars.githubusercontent.com/u/1155525?v=3","gravatar_id":"","url":"https://api.github.com/users/dimtruck","html_url":"https://github.com/dimtruck","followers_url":"https://api.github.com/users/dimtruck/followers","following_url":"https://api.github.com/users/dimtruck/following{/other_user}","gists_url":"https://api.github.com/users/dimtruck/gists{/gist_id}","starred_url":"https://api.github.com/users/dimtruck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimtruck/subscriptions","organizations_url":"https://api.github.com/users/dimtruck/orgs","repos_url":"https://api.github.com/users/dimtruck/repos","events_url":"https://api.github.com/users/dimtruck/events{/privacy}","received_events_url":"https://api.github.com/users/dimtruck/received_events","type":"User","site_admin":false},"body":"@jamesyli @filler Please review this keystone-v2 recipe.\r\n\r\nCloses #42 ","created_at":"2016-03-04T19:41:53Z","updated_at":"2016-03-15T03:22:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99a295c780781061417c95838b539862605edc35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/46/comments","statuses_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/statuses/791b9eaeb55f86ea32b905fd606834160f7724da","head":{"label":"rackerlabs:add-keystone-v2","ref":"add-keystone-v2","sha":"791b9eaeb55f86ea32b905fd606834160f7724da","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":19357422,"name":"cookbook-repose","full_name":"rackerlabs/cookbook-repose","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/cookbook-repose","description":"This cookbook manages Repose.","fork":false,"url":"https://api.github.com/repos/rackerlabs/cookbook-repose","forks_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/forks","keys_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/teams","hooks_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/events","assignees_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/tags","blobs_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/subscription","commits_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/merges","archive_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/downloads","issues_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/deployments","created_at":"2014-05-01T20:48:19Z","updated_at":"2016-01-20T17:15:56Z","pushed_at":"2016-03-11T15:51:18Z","git_url":"git://github.com/rackerlabs/cookbook-repose.git","ssh_url":"git@github.com:rackerlabs/cookbook-repose.git","clone_url":"https://github.com/rackerlabs/cookbook-repose.git","svn_url":"https://github.com/rackerlabs/cookbook-repose","homepage":null,"size":229,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"9a91177047bc05e08fc5f964dc17f3d89573aae0","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":19357422,"name":"cookbook-repose","full_name":"rackerlabs/cookbook-repose","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/cookbook-repose","description":"This cookbook manages Repose.","fork":false,"url":"https://api.github.com/repos/rackerlabs/cookbook-repose","forks_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/forks","keys_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/teams","hooks_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/events","assignees_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/tags","blobs_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/subscription","commits_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/merges","archive_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/downloads","issues_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/cookbook-repose/deployments","created_at":"2014-05-01T20:48:19Z","updated_at":"2016-01-20T17:15:56Z","pushed_at":"2016-03-11T15:51:18Z","git_url":"git://github.com/rackerlabs/cookbook-repose.git","ssh_url":"git@github.com:rackerlabs/cookbook-repose.git","clone_url":"https://github.com/rackerlabs/cookbook-repose.git","svn_url":"https://github.com/rackerlabs/cookbook-repose","homepage":null,"size":229,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46"},"html":{"href":"https://github.com/rackerlabs/cookbook-repose/pull/46"},"issue":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/46"},"comments":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/cookbook-repose/statuses/791b9eaeb55f86ea32b905fd606834160f7724da"}}}}