{"action":"created","comment":{"url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/comments/29338655","id":29338655,"diff_hunk":"@@ -18,37 +18,92 @@\n # Refer to the README and COPYING files for full details of the license\n #\n \n+import sys\n+\n from fabric.api import cd\n-from fabric.api import put\n+from fabric.api import env\n from fabric.api import run\n from fabric.api import settings\n from fabric.api import sudo\n from fabric.api import task\n-from fabric.api import env\n-from fabric.contrib.files import sed\n \n-from common import install_packages\n from common import enable_services\n from common import enable_tcp_ports\n+from common import install_packages\n+from manageiq import create_provider\n+from manageiq import refresh_provider\n \n \n+DEFAULT_ATTEMPTS = 10\n+PROVIDER_NAME = 'openshift01'\n+\n @task(name='install-deps')\n def install_deps():\n     install_packages([\n-        'docker-io',\n+        'docker',\n+        'docker-registry',\n         'git',\n         'golang',\n         'screen',\n         'vim',\n     ])\n+    # required on CentOS7\n+    sudo('yum -y update device-mapper')\n \n \n @task\n-def deploy(proxy=''):\n+def deploy():\n     install_deps()\n \n-    enable_services(['docker.socket'])\n+    enable_services(['docker.service'])\n+\n     enable_tcp_ports([8443, 8444])\n \n-    sudo('usermod -a -G docker {0}'.format(env.user))\n+    sudo('groupadd docker')\n+    sudo('usermod -aG docker {0}'.format(env.user))\n+\n     run('test -d origin || git clone https://github.com/openshift/origin.git')\n+\n+\n+@task\n+def start():\n+    with cd('origin'):\n+        run('make')\n+        run('./_output/local/go/bin/openshift start --write-config=true '\n+            '--node-config=true '\n+            '--master-config=openshift.local.certificates/master/master'\n+            '.yaml')\n+\n+        run('mkdir -p ~/.config/openshift/')\n+        run('cp openshift.local.certificates/admin/.kubeconfig ~/.config/openshift/.config')\n+\n+        sudo('nohup ./_output/local/go/bin/openshift start '\n+             '--master-config=openshift.local.certificates/master/master'\n+             '.yaml &> /dev/null & sleep 5; exit 0')","path":"projects/openshift.py","position":73,"original_position":73,"commit_id":"1351275323309e707c26c2792db93bb533109c95","original_commit_id":"1351275323309e707c26c2792db93bb533109c95","user":{"login":"dkorn","id":6347577,"avatar_url":"https://avatars.githubusercontent.com/u/6347577?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorn","html_url":"https://github.com/dkorn","followers_url":"https://api.github.com/users/dkorn/followers","following_url":"https://api.github.com/users/dkorn/following{/other_user}","gists_url":"https://api.github.com/users/dkorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorn/subscriptions","organizations_url":"https://api.github.com/users/dkorn/orgs","repos_url":"https://api.github.com/users/dkorn/repos","events_url":"https://api.github.com/users/dkorn/events{/privacy}","received_events_url":"https://api.github.com/users/dkorn/received_events","type":"User","site_admin":false},"body":"it looks like the issue is closed but I can't find the patch which solved it. as far as i can see there is no 'formal' solution but I can research this.\r\nAnyway, comment added.","created_at":"2015-04-29T14:09:25Z","updated_at":"2015-04-29T14:09:25Z","html_url":"https://github.com/simon3z/fabric-scripts/pull/5#discussion_r29338655","pull_request_url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/comments/29338655"},"html":{"href":"https://github.com/simon3z/fabric-scripts/pull/5#discussion_r29338655"},"pull_request":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5","id":34268745,"html_url":"https://github.com/simon3z/fabric-scripts/pull/5","diff_url":"https://github.com/simon3z/fabric-scripts/pull/5.diff","patch_url":"https://github.com/simon3z/fabric-scripts/pull/5.patch","issue_url":"https://api.github.com/repos/simon3z/fabric-scripts/issues/5","number":5,"state":"open","locked":false,"title":"Refresh inventory","user":{"login":"dkorn","id":6347577,"avatar_url":"https://avatars.githubusercontent.com/u/6347577?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorn","html_url":"https://github.com/dkorn","followers_url":"https://api.github.com/users/dkorn/followers","following_url":"https://api.github.com/users/dkorn/following{/other_user}","gists_url":"https://api.github.com/users/dkorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorn/subscriptions","organizations_url":"https://api.github.com/users/dkorn/orgs","repos_url":"https://api.github.com/users/dkorn/repos","events_url":"https://api.github.com/users/dkorn/events{/privacy}","received_events_url":"https://api.github.com/users/dkorn/received_events","type":"User","site_admin":false},"body":"Depends on https://github.com/simon3z/fabric-scripts/pull/4","created_at":"2015-04-28T13:54:35Z","updated_at":"2015-04-29T14:09:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c02f99993e017b9bc2bb2e951d0fa0e2de171945","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5/commits","review_comments_url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5/comments","review_comment_url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simon3z/fabric-scripts/issues/5/comments","statuses_url":"https://api.github.com/repos/simon3z/fabric-scripts/statuses/1351275323309e707c26c2792db93bb533109c95","head":{"label":"dkorn:refreshInventory","ref":"refreshInventory","sha":"1351275323309e707c26c2792db93bb533109c95","user":{"login":"dkorn","id":6347577,"avatar_url":"https://avatars.githubusercontent.com/u/6347577?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorn","html_url":"https://github.com/dkorn","followers_url":"https://api.github.com/users/dkorn/followers","following_url":"https://api.github.com/users/dkorn/following{/other_user}","gists_url":"https://api.github.com/users/dkorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorn/subscriptions","organizations_url":"https://api.github.com/users/dkorn/orgs","repos_url":"https://api.github.com/users/dkorn/repos","events_url":"https://api.github.com/users/dkorn/events{/privacy}","received_events_url":"https://api.github.com/users/dkorn/received_events","type":"User","site_admin":false},"repo":{"id":33312089,"name":"fabric-scripts","full_name":"dkorn/fabric-scripts","owner":{"login":"dkorn","id":6347577,"avatar_url":"https://avatars.githubusercontent.com/u/6347577?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorn","html_url":"https://github.com/dkorn","followers_url":"https://api.github.com/users/dkorn/followers","following_url":"https://api.github.com/users/dkorn/following{/other_user}","gists_url":"https://api.github.com/users/dkorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorn/subscriptions","organizations_url":"https://api.github.com/users/dkorn/orgs","repos_url":"https://api.github.com/users/dkorn/repos","events_url":"https://api.github.com/users/dkorn/events{/privacy}","received_events_url":"https://api.github.com/users/dkorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkorn/fabric-scripts","description":"","fork":true,"url":"https://api.github.com/repos/dkorn/fabric-scripts","forks_url":"https://api.github.com/repos/dkorn/fabric-scripts/forks","keys_url":"https://api.github.com/repos/dkorn/fabric-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkorn/fabric-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkorn/fabric-scripts/teams","hooks_url":"https://api.github.com/repos/dkorn/fabric-scripts/hooks","issue_events_url":"https://api.github.com/repos/dkorn/fabric-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/dkorn/fabric-scripts/events","assignees_url":"https://api.github.com/repos/dkorn/fabric-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/dkorn/fabric-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/dkorn/fabric-scripts/tags","blobs_url":"https://api.github.com/repos/dkorn/fabric-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkorn/fabric-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkorn/fabric-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkorn/fabric-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkorn/fabric-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/dkorn/fabric-scripts/languages","stargazers_url":"https://api.github.com/repos/dkorn/fabric-scripts/stargazers","contributors_url":"https://api.github.com/repos/dkorn/fabric-scripts/contributors","subscribers_url":"https://api.github.com/repos/dkorn/fabric-scripts/subscribers","subscription_url":"https://api.github.com/repos/dkorn/fabric-scripts/subscription","commits_url":"https://api.github.com/repos/dkorn/fabric-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkorn/fabric-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkorn/fabric-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkorn/fabric-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkorn/fabric-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/dkorn/fabric-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkorn/fabric-scripts/merges","archive_url":"https://api.github.com/repos/dkorn/fabric-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkorn/fabric-scripts/downloads","issues_url":"https://api.github.com/repos/dkorn/fabric-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/dkorn/fabric-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/dkorn/fabric-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/dkorn/fabric-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkorn/fabric-scripts/labels{/name}","releases_url":"https://api.github.com/repos/dkorn/fabric-scripts/releases{/id}","created_at":"2015-04-02T14:04:48Z","updated_at":"2015-04-02T14:04:49Z","pushed_at":"2015-04-29T09:41:46Z","git_url":"git://github.com/dkorn/fabric-scripts.git","ssh_url":"git@github.com:dkorn/fabric-scripts.git","clone_url":"https://github.com/dkorn/fabric-scripts.git","svn_url":"https://github.com/dkorn/fabric-scripts","homepage":null,"size":127,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"simon3z:master","ref":"master","sha":"a0294150335ebf32985c2ceb26b074bcdb0967a5","user":{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false},"repo":{"id":29339856,"name":"fabric-scripts","full_name":"simon3z/fabric-scripts","owner":{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simon3z/fabric-scripts","description":"","fork":false,"url":"https://api.github.com/repos/simon3z/fabric-scripts","forks_url":"https://api.github.com/repos/simon3z/fabric-scripts/forks","keys_url":"https://api.github.com/repos/simon3z/fabric-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simon3z/fabric-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simon3z/fabric-scripts/teams","hooks_url":"https://api.github.com/repos/simon3z/fabric-scripts/hooks","issue_events_url":"https://api.github.com/repos/simon3z/fabric-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/simon3z/fabric-scripts/events","assignees_url":"https://api.github.com/repos/simon3z/fabric-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/simon3z/fabric-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/simon3z/fabric-scripts/tags","blobs_url":"https://api.github.com/repos/simon3z/fabric-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simon3z/fabric-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simon3z/fabric-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/simon3z/fabric-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simon3z/fabric-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/simon3z/fabric-scripts/languages","stargazers_url":"https://api.github.com/repos/simon3z/fabric-scripts/stargazers","contributors_url":"https://api.github.com/repos/simon3z/fabric-scripts/contributors","subscribers_url":"https://api.github.com/repos/simon3z/fabric-scripts/subscribers","subscription_url":"https://api.github.com/repos/simon3z/fabric-scripts/subscription","commits_url":"https://api.github.com/repos/simon3z/fabric-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/simon3z/fabric-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/simon3z/fabric-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/simon3z/fabric-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/simon3z/fabric-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/simon3z/fabric-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simon3z/fabric-scripts/merges","archive_url":"https://api.github.com/repos/simon3z/fabric-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simon3z/fabric-scripts/downloads","issues_url":"https://api.github.com/repos/simon3z/fabric-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/simon3z/fabric-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/simon3z/fabric-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/simon3z/fabric-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simon3z/fabric-scripts/labels{/name}","releases_url":"https://api.github.com/repos/simon3z/fabric-scripts/releases{/id}","created_at":"2015-01-16T08:39:03Z","updated_at":"2015-04-14T07:50:17Z","pushed_at":"2015-04-29T09:42:42Z","git_url":"git://github.com/simon3z/fabric-scripts.git","ssh_url":"git@github.com:simon3z/fabric-scripts.git","clone_url":"https://github.com/simon3z/fabric-scripts.git","svn_url":"https://github.com/simon3z/fabric-scripts","homepage":null,"size":352,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5"},"html":{"href":"https://github.com/simon3z/fabric-scripts/pull/5"},"issue":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/issues/5"},"comments":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/simon3z/fabric-scripts/statuses/1351275323309e707c26c2792db93bb533109c95"}}}}