{"action":"closed","number":70,"pull_request":{"url":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/70","id":116470980,"html_url":"https://github.com/jacknagz/osquery-cookbook/pull/70","diff_url":"https://github.com/jacknagz/osquery-cookbook/pull/70.diff","patch_url":"https://github.com/jacknagz/osquery-cookbook/pull/70.patch","issue_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/70","number":70,"state":"closed","locked":false,"title":"Update Osquery Package Version and More","user":{"login":"jacknagz","id":11466941,"avatar_url":"https://avatars2.githubusercontent.com/u/11466941?v=3","gravatar_id":"","url":"https://api.github.com/users/jacknagz","html_url":"https://github.com/jacknagz","followers_url":"https://api.github.com/users/jacknagz/followers","following_url":"https://api.github.com/users/jacknagz/following{/other_user}","gists_url":"https://api.github.com/users/jacknagz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacknagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacknagz/subscriptions","organizations_url":"https://api.github.com/users/jacknagz/orgs","repos_url":"https://api.github.com/users/jacknagz/repos","events_url":"https://api.github.com/users/jacknagz/events{/privacy}","received_events_url":"https://api.github.com/users/jacknagz/received_events","type":"User","site_admin":false},"body":"to @chunyong-lin \r\ncc @mime-frame\r\n\r\nPer the simplification of the upstream `osquery` package creation (one package per OS vs per OS and version), this change modifies the interpolation of package versions in the `osquery_install` provider.\r\n\r\nThe snip below shows the progression in package names.\r\n```\r\n  Version table:\r\n *** 2.4.0-1.linux 0\r\n        500 https://osquery-packages.s3.amazonaws.com/trusty/ trusty/main amd64 Packages\r\n        100 /var/lib/dpkg/status\r\n     2.3.4-1.u16 0\r\n        500 https://osquery-packages.s3.amazonaws.com/trusty/ trusty/main amd64 Packages\r\n     2.2.0-1.14 0\r\n        500 https://osquery-packages.s3.amazonaws.com/trusty/ trusty/main amd64 Packages\r\n     2.1.2-1.ubuntu14 0\r\n        500 https://osquery-packages.s3.amazonaws.com/trusty/ trusty/main amd64 Packages\r\n```\r\n\r\nThis PR also includes some minor cleanup of old code and more to support the above use case.","created_at":"2017-04-19T05:19:42Z","updated_at":"2017-04-19T15:56:27Z","closed_at":"2017-04-19T15:56:27Z","merged_at":"2017-04-19T15:56:27Z","merge_commit_sha":"51c80f4ad92eaa585a3dfa41aeecb4729b52cbd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/70/commits","review_comments_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/70/comments","review_comment_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/70/comments","statuses_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/statuses/b79f306dc707338174bdeff655aba1a55c75c8fa","head":{"label":"jacknagz:fix-upgrade-issue-simplify-versioning","ref":"fix-upgrade-issue-simplify-versioning","sha":"b79f306dc707338174bdeff655aba1a55c75c8fa","user":{"login":"jacknagz","id":11466941,"avatar_url":"https://avatars2.githubusercontent.com/u/11466941?v=3","gravatar_id":"","url":"https://api.github.com/users/jacknagz","html_url":"https://github.com/jacknagz","followers_url":"https://api.github.com/users/jacknagz/followers","following_url":"https://api.github.com/users/jacknagz/following{/other_user}","gists_url":"https://api.github.com/users/jacknagz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacknagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacknagz/subscriptions","organizations_url":"https://api.github.com/users/jacknagz/orgs","repos_url":"https://api.github.com/users/jacknagz/repos","events_url":"https://api.github.com/users/jacknagz/events{/privacy}","received_events_url":"https://api.github.com/users/jacknagz/received_events","type":"User","site_admin":false},"repo":{"id":47674652,"name":"osquery-cookbook","full_name":"jacknagz/osquery-cookbook","owner":{"login":"jacknagz","id":11466941,"avatar_url":"https://avatars2.githubusercontent.com/u/11466941?v=3","gravatar_id":"","url":"https://api.github.com/users/jacknagz","html_url":"https://github.com/jacknagz","followers_url":"https://api.github.com/users/jacknagz/followers","following_url":"https://api.github.com/users/jacknagz/following{/other_user}","gists_url":"https://api.github.com/users/jacknagz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacknagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacknagz/subscriptions","organizations_url":"https://api.github.com/users/jacknagz/orgs","repos_url":"https://api.github.com/users/jacknagz/repos","events_url":"https://api.github.com/users/jacknagz/events{/privacy}","received_events_url":"https://api.github.com/users/jacknagz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacknagz/osquery-cookbook","description":"A Chef Cookbook to install and configure osquery.","fork":false,"url":"https://api.github.com/repos/jacknagz/osquery-cookbook","forks_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/forks","keys_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/teams","hooks_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/hooks","issue_events_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/events","assignees_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/tags","blobs_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/languages","stargazers_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/stargazers","contributors_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/contributors","subscribers_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/subscribers","subscription_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/subscription","commits_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/merges","archive_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/downloads","issues_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/deployments","created_at":"2015-12-09T07:03:40Z","updated_at":"2017-01-04T05:11:51Z","pushed_at":"2017-04-19T15:56:27Z","git_url":"git://github.com/jacknagz/osquery-cookbook.git","ssh_url":"git@github.com:jacknagz/osquery-cookbook.git","clone_url":"https://github.com/jacknagz/osquery-cookbook.git","svn_url":"https://github.com/jacknagz/osquery-cookbook","homepage":"","size":136,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":5,"default_branch":"master"}},"base":{"label":"jacknagz:master","ref":"master","sha":"29cc05a851f6ddeb5c43a900462f0f0573911938","user":{"login":"jacknagz","id":11466941,"avatar_url":"https://avatars2.githubusercontent.com/u/11466941?v=3","gravatar_id":"","url":"https://api.github.com/users/jacknagz","html_url":"https://github.com/jacknagz","followers_url":"https://api.github.com/users/jacknagz/followers","following_url":"https://api.github.com/users/jacknagz/following{/other_user}","gists_url":"https://api.github.com/users/jacknagz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacknagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacknagz/subscriptions","organizations_url":"https://api.github.com/users/jacknagz/orgs","repos_url":"https://api.github.com/users/jacknagz/repos","events_url":"https://api.github.com/users/jacknagz/events{/privacy}","received_events_url":"https://api.github.com/users/jacknagz/received_events","type":"User","site_admin":false},"repo":{"id":47674652,"name":"osquery-cookbook","full_name":"jacknagz/osquery-cookbook","owner":{"login":"jacknagz","id":11466941,"avatar_url":"https://avatars2.githubusercontent.com/u/11466941?v=3","gravatar_id":"","url":"https://api.github.com/users/jacknagz","html_url":"https://github.com/jacknagz","followers_url":"https://api.github.com/users/jacknagz/followers","following_url":"https://api.github.com/users/jacknagz/following{/other_user}","gists_url":"https://api.github.com/users/jacknagz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacknagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacknagz/subscriptions","organizations_url":"https://api.github.com/users/jacknagz/orgs","repos_url":"https://api.github.com/users/jacknagz/repos","events_url":"https://api.github.com/users/jacknagz/events{/privacy}","received_events_url":"https://api.github.com/users/jacknagz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacknagz/osquery-cookbook","description":"A Chef Cookbook to install and configure osquery.","fork":false,"url":"https://api.github.com/repos/jacknagz/osquery-cookbook","forks_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/forks","keys_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/teams","hooks_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/hooks","issue_events_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/events","assignees_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/tags","blobs_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/languages","stargazers_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/stargazers","contributors_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/contributors","subscribers_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/subscribers","subscription_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/subscription","commits_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/merges","archive_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/downloads","issues_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/jacknagz/osquery-cookbook/deployments","created_at":"2015-12-09T07:03:40Z","updated_at":"2017-01-04T05:11:51Z","pushed_at":"2017-04-19T15:56:27Z","git_url":"git://github.com/jacknagz/osquery-cookbook.git","ssh_url":"git@github.com:jacknagz/osquery-cookbook.git","clone_url":"https://github.com/jacknagz/osquery-cookbook.git","svn_url":"https://github.com/jacknagz/osquery-cookbook","homepage":"","size":136,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/70"},"html":{"href":"https://github.com/jacknagz/osquery-cookbook/pull/70"},"issue":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/70"},"comments":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/jacknagz/osquery-cookbook/statuses/b79f306dc707338174bdeff655aba1a55c75c8fa"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jacknagz","id":11466941,"avatar_url":"https://avatars2.githubusercontent.com/u/11466941?v=3","gravatar_id":"","url":"https://api.github.com/users/jacknagz","html_url":"https://github.com/jacknagz","followers_url":"https://api.github.com/users/jacknagz/followers","following_url":"https://api.github.com/users/jacknagz/following{/other_user}","gists_url":"https://api.github.com/users/jacknagz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacknagz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacknagz/subscriptions","organizations_url":"https://api.github.com/users/jacknagz/orgs","repos_url":"https://api.github.com/users/jacknagz/repos","events_url":"https://api.github.com/users/jacknagz/events{/privacy}","received_events_url":"https://api.github.com/users/jacknagz/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"maintainer_can_modify":false,"commits":2,"additions":20,"deletions":23,"changed_files":10}}
{"actor":{"display_login":"jacknagz"}}