{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/tokend/pulls/comments/93310141","pull_request_review_id":13835278,"id":93310141,"diff_hunk":"@@ -56,17 +48,46 @@\n   backup false\n end\n \n+version_dir = \"#{ node['tokend']['paths']['directory'] }-#{ node['tokend']['version'] }\"\n+\n package 'tokend' do\n   source resources('remote_file[tokend]').path\n   provider Chef::Provider::Package::Dpkg\n+  notifies :run, \"execute[chown #{version_dir}]\"\n end\n \n-## Upstart Service\n-template '/etc/init/tokend.conf' do\n+## Symlink the version dir to the specified tokend directory\n+link node['tokend']['paths']['directory'] do\n+  to version_dir\n   owner node['tokend']['user']\n   group node['tokend']['group']\n \n-  source 'upstart.conf.erb'\n+  notifies :restart, 'service[tokend]' if node['tokend']['enable']\n+end\n+\n+## Chown the contents of the versioned tokend directory to the tokend user/group\n+execute \"chown #{version_dir}\" do","path":"cookbook/recipes/default.rb","position":40,"original_position":40,"commit_id":"bc095375fc3b70f1697f8ef0b273fb752b19d929","original_commit_id":"bc095375fc3b70f1697f8ef0b273fb752b19d929","user":{"login":"jmanero-r7","id":8549280,"avatar_url":"https://avatars.githubusercontent.com/u/8549280?v=3","gravatar_id":"","url":"https://api.github.com/users/jmanero-r7","html_url":"https://github.com/jmanero-r7","followers_url":"https://api.github.com/users/jmanero-r7/followers","following_url":"https://api.github.com/users/jmanero-r7/following{/other_user}","gists_url":"https://api.github.com/users/jmanero-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jmanero-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmanero-r7/subscriptions","organizations_url":"https://api.github.com/users/jmanero-r7/orgs","repos_url":"https://api.github.com/users/jmanero-r7/repos","events_url":"https://api.github.com/users/jmanero-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jmanero-r7/received_events","type":"User","site_admin":false},"body":"This doesn't need to be owned by the operator user","created_at":"2016-12-20T19:42:53Z","updated_at":"2016-12-20T19:44:34Z","html_url":"https://github.com/rapid7/tokend/pull/91#discussion_r93310141","pull_request_url":"https://api.github.com/repos/rapid7/tokend/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/rapid7/tokend/pulls/comments/93310141"},"html":{"href":"https://github.com/rapid7/tokend/pull/91#discussion_r93310141"},"pull_request":{"href":"https://api.github.com/repos/rapid7/tokend/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/tokend/pulls/91","id":98791144,"html_url":"https://github.com/rapid7/tokend/pull/91","diff_url":"https://github.com/rapid7/tokend/pull/91.diff","patch_url":"https://github.com/rapid7/tokend/pull/91.patch","issue_url":"https://api.github.com/repos/rapid7/tokend/issues/91","number":91,"state":"open","locked":false,"title":"Update cookbook for release","user":{"login":"dgreene-r7","id":15327249,"avatar_url":"https://avatars.githubusercontent.com/u/15327249?v=3","gravatar_id":"","url":"https://api.github.com/users/dgreene-r7","html_url":"https://github.com/dgreene-r7","followers_url":"https://api.github.com/users/dgreene-r7/followers","following_url":"https://api.github.com/users/dgreene-r7/following{/other_user}","gists_url":"https://api.github.com/users/dgreene-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/dgreene-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgreene-r7/subscriptions","organizations_url":"https://api.github.com/users/dgreene-r7/orgs","repos_url":"https://api.github.com/users/dgreene-r7/repos","events_url":"https://api.github.com/users/dgreene-r7/events{/privacy}","received_events_url":"https://api.github.com/users/dgreene-r7/received_events","type":"User","site_admin":false},"body":"This PR refactors the cookbook to work the same way the [Propsd cookbook](https://github.com/rapid7/propsd/tree/master/cookbook) does.","created_at":"2016-12-20T17:24:54Z","updated_at":"2016-12-20T19:44:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"560204079a462d50b320b251e3d000435b2de31f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/tokend/pulls/91/commits","review_comments_url":"https://api.github.com/repos/rapid7/tokend/pulls/91/comments","review_comment_url":"https://api.github.com/repos/rapid7/tokend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/tokend/issues/91/comments","statuses_url":"https://api.github.com/repos/rapid7/tokend/statuses/bc095375fc3b70f1697f8ef0b273fb752b19d929","head":{"label":"rapid7:update-cookbook-for-release","ref":"update-cookbook-for-release","sha":"bc095375fc3b70f1697f8ef0b273fb752b19d929","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":55086935,"name":"tokend","full_name":"rapid7/tokend","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/tokend","description":"A Node.js daemon that interfaces with Vault and Warden to provide a secure method to deliver secrets to servers in the cloud.","fork":false,"url":"https://api.github.com/repos/rapid7/tokend","forks_url":"https://api.github.com/repos/rapid7/tokend/forks","keys_url":"https://api.github.com/repos/rapid7/tokend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/tokend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/tokend/teams","hooks_url":"https://api.github.com/repos/rapid7/tokend/hooks","issue_events_url":"https://api.github.com/repos/rapid7/tokend/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/tokend/events","assignees_url":"https://api.github.com/repos/rapid7/tokend/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/tokend/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/tokend/tags","blobs_url":"https://api.github.com/repos/rapid7/tokend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/tokend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/tokend/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/tokend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/tokend/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/tokend/languages","stargazers_url":"https://api.github.com/repos/rapid7/tokend/stargazers","contributors_url":"https://api.github.com/repos/rapid7/tokend/contributors","subscribers_url":"https://api.github.com/repos/rapid7/tokend/subscribers","subscription_url":"https://api.github.com/repos/rapid7/tokend/subscription","commits_url":"https://api.github.com/repos/rapid7/tokend/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/tokend/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/tokend/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/tokend/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/tokend/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/tokend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/tokend/merges","archive_url":"https://api.github.com/repos/rapid7/tokend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/tokend/downloads","issues_url":"https://api.github.com/repos/rapid7/tokend/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/tokend/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/tokend/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/tokend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/tokend/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/tokend/releases{/id}","deployments_url":"https://api.github.com/repos/rapid7/tokend/deployments","created_at":"2016-03-30T18:26:03Z","updated_at":"2016-12-13T20:28:16Z","pushed_at":"2016-12-20T17:24:55Z","git_url":"git://github.com/rapid7/tokend.git","ssh_url":"git@github.com:rapid7/tokend.git","clone_url":"https://github.com/rapid7/tokend.git","svn_url":"https://github.com/rapid7/tokend","homepage":"","size":395,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":4,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"10d093e7de96169a2824a0d032b68333060ea007","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":55086935,"name":"tokend","full_name":"rapid7/tokend","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/tokend","description":"A Node.js daemon that interfaces with Vault and Warden to provide a secure method to deliver secrets to servers in the cloud.","fork":false,"url":"https://api.github.com/repos/rapid7/tokend","forks_url":"https://api.github.com/repos/rapid7/tokend/forks","keys_url":"https://api.github.com/repos/rapid7/tokend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/tokend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/tokend/teams","hooks_url":"https://api.github.com/repos/rapid7/tokend/hooks","issue_events_url":"https://api.github.com/repos/rapid7/tokend/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/tokend/events","assignees_url":"https://api.github.com/repos/rapid7/tokend/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/tokend/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/tokend/tags","blobs_url":"https://api.github.com/repos/rapid7/tokend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/tokend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/tokend/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/tokend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/tokend/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/tokend/languages","stargazers_url":"https://api.github.com/repos/rapid7/tokend/stargazers","contributors_url":"https://api.github.com/repos/rapid7/tokend/contributors","subscribers_url":"https://api.github.com/repos/rapid7/tokend/subscribers","subscription_url":"https://api.github.com/repos/rapid7/tokend/subscription","commits_url":"https://api.github.com/repos/rapid7/tokend/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/tokend/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/tokend/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/tokend/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/tokend/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/tokend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/tokend/merges","archive_url":"https://api.github.com/repos/rapid7/tokend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/tokend/downloads","issues_url":"https://api.github.com/repos/rapid7/tokend/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/tokend/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/tokend/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/tokend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/tokend/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/tokend/releases{/id}","deployments_url":"https://api.github.com/repos/rapid7/tokend/deployments","created_at":"2016-03-30T18:26:03Z","updated_at":"2016-12-13T20:28:16Z","pushed_at":"2016-12-20T17:24:55Z","git_url":"git://github.com/rapid7/tokend.git","ssh_url":"git@github.com:rapid7/tokend.git","clone_url":"https://github.com/rapid7/tokend.git","svn_url":"https://github.com/rapid7/tokend","homepage":"","size":395,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/tokend/pulls/91"},"html":{"href":"https://github.com/rapid7/tokend/pull/91"},"issue":{"href":"https://api.github.com/repos/rapid7/tokend/issues/91"},"comments":{"href":"https://api.github.com/repos/rapid7/tokend/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/tokend/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/tokend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/tokend/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/tokend/statuses/bc095375fc3b70f1697f8ef0b273fb752b19d929"}}}}
{"actor":{"display_login":"jmanero-r7"}}