{"action":"created","comment":{"url":"https://api.github.com/repos/MSMFG/tru-strap/pulls/comments/44397769","id":44397769,"diff_hunk":"@@ -153,6 +154,18 @@ set_facter() {\n   cat /etc/facter/facts.d/\"${1}\".txt\n }\n \n+setup_rhel7_repo() {\n+  yum_install redhat-lsb-core\n+  dist=$(lsb_release -is)\n+  majorversion=$(lsb_release -rs | cut -f1 -d.)\n+  if [[ \"$majorversion\" == \"7\" ]] & [[ \"$dist\" == \"RedHatEnterpriseServer\" ]]; then","path":"init.sh","position":16,"original_position":16,"commit_id":"962b37109fb8030756be71f371aa8cf29b61e8e7","original_commit_id":"962b37109fb8030756be71f371aa8cf29b61e8e7","user":{"login":"dstockton","id":7375241,"avatar_url":"https://avatars.githubusercontent.com/u/7375241?v=3","gravatar_id":"","url":"https://api.github.com/users/dstockton","html_url":"https://github.com/dstockton","followers_url":"https://api.github.com/users/dstockton/followers","following_url":"https://api.github.com/users/dstockton/following{/other_user}","gists_url":"https://api.github.com/users/dstockton/gists{/gist_id}","starred_url":"https://api.github.com/users/dstockton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstockton/subscriptions","organizations_url":"https://api.github.com/users/dstockton/orgs","repos_url":"https://api.github.com/users/dstockton/repos","events_url":"https://api.github.com/users/dstockton/events{/privacy}","received_events_url":"https://api.github.com/users/dstockton/received_events","type":"User","site_admin":false},"body":"Stylistically, I prefer...\r\n```\r\nif [ \"$majorversion\" == \"7\" ] && [ \"$dist\" == \"RedHatEnterpriseServer\" ]; then\r\n```\r\n\r\nbut :+1:","created_at":"2015-11-10T11:54:59Z","updated_at":"2015-11-10T11:54:59Z","html_url":"https://github.com/MSMFG/tru-strap/pull/52#discussion_r44397769","pull_request_url":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/MSMFG/tru-strap/pulls/comments/44397769"},"html":{"href":"https://github.com/MSMFG/tru-strap/pull/52#discussion_r44397769"},"pull_request":{"href":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52","id":50125305,"html_url":"https://github.com/MSMFG/tru-strap/pull/52","diff_url":"https://github.com/MSMFG/tru-strap/pull/52.diff","patch_url":"https://github.com/MSMFG/tru-strap/pull/52.patch","issue_url":"https://api.github.com/repos/MSMFG/tru-strap/issues/52","number":52,"state":"open","locked":false,"title":"add RHUI extras repo for *-devel packages","user":{"login":"neilmillard-msm","id":15192578,"avatar_url":"https://avatars.githubusercontent.com/u/15192578?v=3","gravatar_id":"","url":"https://api.github.com/users/neilmillard-msm","html_url":"https://github.com/neilmillard-msm","followers_url":"https://api.github.com/users/neilmillard-msm/followers","following_url":"https://api.github.com/users/neilmillard-msm/following{/other_user}","gists_url":"https://api.github.com/users/neilmillard-msm/gists{/gist_id}","starred_url":"https://api.github.com/users/neilmillard-msm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilmillard-msm/subscriptions","organizations_url":"https://api.github.com/users/neilmillard-msm/orgs","repos_url":"https://api.github.com/users/neilmillard-msm/repos","events_url":"https://api.github.com/users/neilmillard-msm/events{/privacy}","received_events_url":"https://api.github.com/users/neilmillard-msm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-09T14:02:04Z","updated_at":"2015-11-10T11:54:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06408fbbee793ce1454ea84d2dc13f54c4e913ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52/commits","review_comments_url":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52/comments","review_comment_url":"https://api.github.com/repos/MSMFG/tru-strap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MSMFG/tru-strap/issues/52/comments","statuses_url":"https://api.github.com/repos/MSMFG/tru-strap/statuses/962b37109fb8030756be71f371aa8cf29b61e8e7","head":{"label":"neilmillard-msm:master","ref":"master","sha":"962b37109fb8030756be71f371aa8cf29b61e8e7","user":{"login":"neilmillard-msm","id":15192578,"avatar_url":"https://avatars.githubusercontent.com/u/15192578?v=3","gravatar_id":"","url":"https://api.github.com/users/neilmillard-msm","html_url":"https://github.com/neilmillard-msm","followers_url":"https://api.github.com/users/neilmillard-msm/followers","following_url":"https://api.github.com/users/neilmillard-msm/following{/other_user}","gists_url":"https://api.github.com/users/neilmillard-msm/gists{/gist_id}","starred_url":"https://api.github.com/users/neilmillard-msm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilmillard-msm/subscriptions","organizations_url":"https://api.github.com/users/neilmillard-msm/orgs","repos_url":"https://api.github.com/users/neilmillard-msm/repos","events_url":"https://api.github.com/users/neilmillard-msm/events{/privacy}","received_events_url":"https://api.github.com/users/neilmillard-msm/received_events","type":"User","site_admin":false},"repo":{"id":45839803,"name":"tru-strap","full_name":"neilmillard-msm/tru-strap","owner":{"login":"neilmillard-msm","id":15192578,"avatar_url":"https://avatars.githubusercontent.com/u/15192578?v=3","gravatar_id":"","url":"https://api.github.com/users/neilmillard-msm","html_url":"https://github.com/neilmillard-msm","followers_url":"https://api.github.com/users/neilmillard-msm/followers","following_url":"https://api.github.com/users/neilmillard-msm/following{/other_user}","gists_url":"https://api.github.com/users/neilmillard-msm/gists{/gist_id}","starred_url":"https://api.github.com/users/neilmillard-msm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilmillard-msm/subscriptions","organizations_url":"https://api.github.com/users/neilmillard-msm/orgs","repos_url":"https://api.github.com/users/neilmillard-msm/repos","events_url":"https://api.github.com/users/neilmillard-msm/events{/privacy}","received_events_url":"https://api.github.com/users/neilmillard-msm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neilmillard-msm/tru-strap","description":"Public Repo for Tru-Strap script.  Must not contain business specific data.  Public status means that we can initiate bootstrapping without needing any credentials.","fork":true,"url":"https://api.github.com/repos/neilmillard-msm/tru-strap","forks_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/forks","keys_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/teams","hooks_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/hooks","issue_events_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/issues/events{/number}","events_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/events","assignees_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/assignees{/user}","branches_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/branches{/branch}","tags_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/tags","blobs_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/git/refs{/sha}","trees_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/statuses/{sha}","languages_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/languages","stargazers_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/stargazers","contributors_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/contributors","subscribers_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/subscribers","subscription_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/subscription","commits_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/commits{/sha}","git_commits_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/git/commits{/sha}","comments_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/comments{/number}","issue_comment_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/issues/comments{/number}","contents_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/contents/{+path}","compare_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/merges","archive_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/downloads","issues_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/issues{/number}","pulls_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/pulls{/number}","milestones_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/milestones{/number}","notifications_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/labels{/name}","releases_url":"https://api.github.com/repos/neilmillard-msm/tru-strap/releases{/id}","created_at":"2015-11-09T13:33:21Z","updated_at":"2015-11-09T13:33:22Z","pushed_at":"2015-11-10T11:44:40Z","git_url":"git://github.com/neilmillard-msm/tru-strap.git","ssh_url":"git@github.com:neilmillard-msm/tru-strap.git","clone_url":"https://github.com/neilmillard-msm/tru-strap.git","svn_url":"https://github.com/neilmillard-msm/tru-strap","homepage":null,"size":170,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"MSMFG:master","ref":"master","sha":"dc00499c54b6ea45234d679d08ce1f5dbd0fee14","user":{"login":"MSMFG","id":4202805,"avatar_url":"https://avatars.githubusercontent.com/u/4202805?v=3","gravatar_id":"","url":"https://api.github.com/users/MSMFG","html_url":"https://github.com/MSMFG","followers_url":"https://api.github.com/users/MSMFG/followers","following_url":"https://api.github.com/users/MSMFG/following{/other_user}","gists_url":"https://api.github.com/users/MSMFG/gists{/gist_id}","starred_url":"https://api.github.com/users/MSMFG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSMFG/subscriptions","organizations_url":"https://api.github.com/users/MSMFG/orgs","repos_url":"https://api.github.com/users/MSMFG/repos","events_url":"https://api.github.com/users/MSMFG/events{/privacy}","received_events_url":"https://api.github.com/users/MSMFG/received_events","type":"Organization","site_admin":false},"repo":{"id":17281577,"name":"tru-strap","full_name":"MSMFG/tru-strap","owner":{"login":"MSMFG","id":4202805,"avatar_url":"https://avatars.githubusercontent.com/u/4202805?v=3","gravatar_id":"","url":"https://api.github.com/users/MSMFG","html_url":"https://github.com/MSMFG","followers_url":"https://api.github.com/users/MSMFG/followers","following_url":"https://api.github.com/users/MSMFG/following{/other_user}","gists_url":"https://api.github.com/users/MSMFG/gists{/gist_id}","starred_url":"https://api.github.com/users/MSMFG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSMFG/subscriptions","organizations_url":"https://api.github.com/users/MSMFG/orgs","repos_url":"https://api.github.com/users/MSMFG/repos","events_url":"https://api.github.com/users/MSMFG/events{/privacy}","received_events_url":"https://api.github.com/users/MSMFG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MSMFG/tru-strap","description":"Public Repo for Tru-Strap script.  Must not contain business specific data.  Public status means that we can initiate bootstrapping without needing any credentials.","fork":false,"url":"https://api.github.com/repos/MSMFG/tru-strap","forks_url":"https://api.github.com/repos/MSMFG/tru-strap/forks","keys_url":"https://api.github.com/repos/MSMFG/tru-strap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MSMFG/tru-strap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MSMFG/tru-strap/teams","hooks_url":"https://api.github.com/repos/MSMFG/tru-strap/hooks","issue_events_url":"https://api.github.com/repos/MSMFG/tru-strap/issues/events{/number}","events_url":"https://api.github.com/repos/MSMFG/tru-strap/events","assignees_url":"https://api.github.com/repos/MSMFG/tru-strap/assignees{/user}","branches_url":"https://api.github.com/repos/MSMFG/tru-strap/branches{/branch}","tags_url":"https://api.github.com/repos/MSMFG/tru-strap/tags","blobs_url":"https://api.github.com/repos/MSMFG/tru-strap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MSMFG/tru-strap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MSMFG/tru-strap/git/refs{/sha}","trees_url":"https://api.github.com/repos/MSMFG/tru-strap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MSMFG/tru-strap/statuses/{sha}","languages_url":"https://api.github.com/repos/MSMFG/tru-strap/languages","stargazers_url":"https://api.github.com/repos/MSMFG/tru-strap/stargazers","contributors_url":"https://api.github.com/repos/MSMFG/tru-strap/contributors","subscribers_url":"https://api.github.com/repos/MSMFG/tru-strap/subscribers","subscription_url":"https://api.github.com/repos/MSMFG/tru-strap/subscription","commits_url":"https://api.github.com/repos/MSMFG/tru-strap/commits{/sha}","git_commits_url":"https://api.github.com/repos/MSMFG/tru-strap/git/commits{/sha}","comments_url":"https://api.github.com/repos/MSMFG/tru-strap/comments{/number}","issue_comment_url":"https://api.github.com/repos/MSMFG/tru-strap/issues/comments{/number}","contents_url":"https://api.github.com/repos/MSMFG/tru-strap/contents/{+path}","compare_url":"https://api.github.com/repos/MSMFG/tru-strap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MSMFG/tru-strap/merges","archive_url":"https://api.github.com/repos/MSMFG/tru-strap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MSMFG/tru-strap/downloads","issues_url":"https://api.github.com/repos/MSMFG/tru-strap/issues{/number}","pulls_url":"https://api.github.com/repos/MSMFG/tru-strap/pulls{/number}","milestones_url":"https://api.github.com/repos/MSMFG/tru-strap/milestones{/number}","notifications_url":"https://api.github.com/repos/MSMFG/tru-strap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MSMFG/tru-strap/labels{/name}","releases_url":"https://api.github.com/repos/MSMFG/tru-strap/releases{/id}","created_at":"2014-02-28T09:34:04Z","updated_at":"2015-04-16T09:17:45Z","pushed_at":"2015-11-10T11:44:40Z","git_url":"git://github.com/MSMFG/tru-strap.git","ssh_url":"git@github.com:MSMFG/tru-strap.git","clone_url":"https://github.com/MSMFG/tru-strap.git","svn_url":"https://github.com/MSMFG/tru-strap","homepage":null,"size":505,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":3,"forks":21,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52"},"html":{"href":"https://github.com/MSMFG/tru-strap/pull/52"},"issue":{"href":"https://api.github.com/repos/MSMFG/tru-strap/issues/52"},"comments":{"href":"https://api.github.com/repos/MSMFG/tru-strap/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/MSMFG/tru-strap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MSMFG/tru-strap/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/MSMFG/tru-strap/statuses/962b37109fb8030756be71f371aa8cf29b61e8e7"}}}}