{"action":"opened","number":893,"pull_request":{"url":"https://api.github.com/repos/chef/ohai/pulls/893","id":91657537,"html_url":"https://github.com/chef/ohai/pull/893","diff_url":"https://github.com/chef/ohai/pull/893.diff","patch_url":"https://github.com/chef/ohai/pull/893.patch","issue_url":"https://api.github.com/repos/chef/ohai/issues/893","number":893,"state":"open","locked":false,"title":"Add sysconf plugin to expose system configuration variables","user":{"login":"davide125","id":397089,"avatar_url":"https://avatars.githubusercontent.com/u/397089?v=3","gravatar_id":"","url":"https://api.github.com/users/davide125","html_url":"https://github.com/davide125","followers_url":"https://api.github.com/users/davide125/followers","following_url":"https://api.github.com/users/davide125/following{/other_user}","gists_url":"https://api.github.com/users/davide125/gists{/gist_id}","starred_url":"https://api.github.com/users/davide125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davide125/subscriptions","organizations_url":"https://api.github.com/users/davide125/orgs","repos_url":"https://api.github.com/users/davide125/repos","events_url":"https://api.github.com/users/davide125/events{/privacy}","received_events_url":"https://api.github.com/users/davide125/received_events","type":"User","site_admin":false},"body":"Add a new plugin to expose system configuration variables. See `man sysconf` and `man getconf` for what this is about, the tl;dr is that it exposes a number of system-level variables that are useful to understand what kind of machine or system we're running on. For example, the `LONG_BIT` variable is the only reliable way to determine whether we're running a 32bit userspace on top of a 64bit kernel. This interface is defined by POSIX and should be available on all UNIX-like OS. I tested this on Linux, but verified the interface is documented as available on AIX, Solaris, Darwin, BSD, IRIX and HP-UX.\r\n\r\nSigned-off-by: Davide Cavalca <dcavalca@fb.com>","created_at":"2016-10-31T17:54:01Z","updated_at":"2016-10-31T17:54:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chef/ohai/pulls/893/commits","review_comments_url":"https://api.github.com/repos/chef/ohai/pulls/893/comments","review_comment_url":"https://api.github.com/repos/chef/ohai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/ohai/issues/893/comments","statuses_url":"https://api.github.com/repos/chef/ohai/statuses/341c979d1e871420c727d0f76df0d1ad96143278","head":{"label":"davide125:getconf","ref":"getconf","sha":"341c979d1e871420c727d0f76df0d1ad96143278","user":{"login":"davide125","id":397089,"avatar_url":"https://avatars.githubusercontent.com/u/397089?v=3","gravatar_id":"","url":"https://api.github.com/users/davide125","html_url":"https://github.com/davide125","followers_url":"https://api.github.com/users/davide125/followers","following_url":"https://api.github.com/users/davide125/following{/other_user}","gists_url":"https://api.github.com/users/davide125/gists{/gist_id}","starred_url":"https://api.github.com/users/davide125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davide125/subscriptions","organizations_url":"https://api.github.com/users/davide125/orgs","repos_url":"https://api.github.com/users/davide125/repos","events_url":"https://api.github.com/users/davide125/events{/privacy}","received_events_url":"https://api.github.com/users/davide125/received_events","type":"User","site_admin":false},"repo":{"id":38889838,"name":"ohai","full_name":"davide125/ohai","owner":{"login":"davide125","id":397089,"avatar_url":"https://avatars.githubusercontent.com/u/397089?v=3","gravatar_id":"","url":"https://api.github.com/users/davide125","html_url":"https://github.com/davide125","followers_url":"https://api.github.com/users/davide125/followers","following_url":"https://api.github.com/users/davide125/following{/other_user}","gists_url":"https://api.github.com/users/davide125/gists{/gist_id}","starred_url":"https://api.github.com/users/davide125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davide125/subscriptions","organizations_url":"https://api.github.com/users/davide125/orgs","repos_url":"https://api.github.com/users/davide125/repos","events_url":"https://api.github.com/users/davide125/events{/privacy}","received_events_url":"https://api.github.com/users/davide125/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davide125/ohai","description":"Ohai profiles your system and emits JSON","fork":true,"url":"https://api.github.com/repos/davide125/ohai","forks_url":"https://api.github.com/repos/davide125/ohai/forks","keys_url":"https://api.github.com/repos/davide125/ohai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davide125/ohai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davide125/ohai/teams","hooks_url":"https://api.github.com/repos/davide125/ohai/hooks","issue_events_url":"https://api.github.com/repos/davide125/ohai/issues/events{/number}","events_url":"https://api.github.com/repos/davide125/ohai/events","assignees_url":"https://api.github.com/repos/davide125/ohai/assignees{/user}","branches_url":"https://api.github.com/repos/davide125/ohai/branches{/branch}","tags_url":"https://api.github.com/repos/davide125/ohai/tags","blobs_url":"https://api.github.com/repos/davide125/ohai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davide125/ohai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davide125/ohai/git/refs{/sha}","trees_url":"https://api.github.com/repos/davide125/ohai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davide125/ohai/statuses/{sha}","languages_url":"https://api.github.com/repos/davide125/ohai/languages","stargazers_url":"https://api.github.com/repos/davide125/ohai/stargazers","contributors_url":"https://api.github.com/repos/davide125/ohai/contributors","subscribers_url":"https://api.github.com/repos/davide125/ohai/subscribers","subscription_url":"https://api.github.com/repos/davide125/ohai/subscription","commits_url":"https://api.github.com/repos/davide125/ohai/commits{/sha}","git_commits_url":"https://api.github.com/repos/davide125/ohai/git/commits{/sha}","comments_url":"https://api.github.com/repos/davide125/ohai/comments{/number}","issue_comment_url":"https://api.github.com/repos/davide125/ohai/issues/comments{/number}","contents_url":"https://api.github.com/repos/davide125/ohai/contents/{+path}","compare_url":"https://api.github.com/repos/davide125/ohai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davide125/ohai/merges","archive_url":"https://api.github.com/repos/davide125/ohai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davide125/ohai/downloads","issues_url":"https://api.github.com/repos/davide125/ohai/issues{/number}","pulls_url":"https://api.github.com/repos/davide125/ohai/pulls{/number}","milestones_url":"https://api.github.com/repos/davide125/ohai/milestones{/number}","notifications_url":"https://api.github.com/repos/davide125/ohai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davide125/ohai/labels{/name}","releases_url":"https://api.github.com/repos/davide125/ohai/releases{/id}","deployments_url":"https://api.github.com/repos/davide125/ohai/deployments","created_at":"2015-07-10T16:13:09Z","updated_at":"2015-07-10T16:13:10Z","pushed_at":"2016-10-31T17:52:43Z","git_url":"git://github.com/davide125/ohai.git","ssh_url":"git@github.com:davide125/ohai.git","clone_url":"https://github.com/davide125/ohai.git","svn_url":"https://github.com/davide125/ohai","homepage":"http://docs.chef.io/ohai.html","size":4633,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"chef:master","ref":"master","sha":"582dcc7ade26123cd0089f0e8f94f17922a17bf9","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":108289,"name":"ohai","full_name":"chef/ohai","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/ohai","description":"Ohai profiles your system and emits JSON","fork":false,"url":"https://api.github.com/repos/chef/ohai","forks_url":"https://api.github.com/repos/chef/ohai/forks","keys_url":"https://api.github.com/repos/chef/ohai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/ohai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/ohai/teams","hooks_url":"https://api.github.com/repos/chef/ohai/hooks","issue_events_url":"https://api.github.com/repos/chef/ohai/issues/events{/number}","events_url":"https://api.github.com/repos/chef/ohai/events","assignees_url":"https://api.github.com/repos/chef/ohai/assignees{/user}","branches_url":"https://api.github.com/repos/chef/ohai/branches{/branch}","tags_url":"https://api.github.com/repos/chef/ohai/tags","blobs_url":"https://api.github.com/repos/chef/ohai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/ohai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/ohai/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/ohai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/ohai/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/ohai/languages","stargazers_url":"https://api.github.com/repos/chef/ohai/stargazers","contributors_url":"https://api.github.com/repos/chef/ohai/contributors","subscribers_url":"https://api.github.com/repos/chef/ohai/subscribers","subscription_url":"https://api.github.com/repos/chef/ohai/subscription","commits_url":"https://api.github.com/repos/chef/ohai/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/ohai/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/ohai/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/ohai/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/ohai/contents/{+path}","compare_url":"https://api.github.com/repos/chef/ohai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/ohai/merges","archive_url":"https://api.github.com/repos/chef/ohai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/ohai/downloads","issues_url":"https://api.github.com/repos/chef/ohai/issues{/number}","pulls_url":"https://api.github.com/repos/chef/ohai/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/ohai/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/ohai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/ohai/labels{/name}","releases_url":"https://api.github.com/repos/chef/ohai/releases{/id}","deployments_url":"https://api.github.com/repos/chef/ohai/deployments","created_at":"2009-01-15T20:50:43Z","updated_at":"2016-10-28T14:44:29Z","pushed_at":"2016-10-28T23:57:47Z","git_url":"git://github.com/chef/ohai.git","ssh_url":"git@github.com:chef/ohai.git","clone_url":"https://github.com/chef/ohai.git","svn_url":"https://github.com/chef/ohai","homepage":"https://docs.chef.io/ohai.html","size":6271,"stargazers_count":536,"watchers_count":536,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":385,"mirror_url":null,"open_issues_count":55,"forks":385,"open_issues":55,"watchers":536,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/ohai/pulls/893"},"html":{"href":"https://github.com/chef/ohai/pull/893"},"issue":{"href":"https://api.github.com/repos/chef/ohai/issues/893"},"comments":{"href":"https://api.github.com/repos/chef/ohai/issues/893/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/ohai/pulls/893/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/ohai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/ohai/pulls/893/commits"},"statuses":{"href":"https://api.github.com/repos/chef/ohai/statuses/341c979d1e871420c727d0f76df0d1ad96143278"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":726,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"davide125"}}