{"action":"created","comment":{"url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/comments/153666062","pull_request_review_id":79705761,"id":153666062,"diff_hunk":"@@ -0,0 +1,223 @@\n+#! /bin/bash\n+#\n+# 'gk-up.sh', and its companion startup script 'do-startup.sh', create a gce cluster customized using a\n+# rhel 7 image with gluster, heketi, git, helm, kubernetes, service-catalog, etc installed. The startup\n+# script creates a file named \"/root/__SUCCESS\" once it has completed. If the gce cluster is running it\n+# will be shut down (this script is idempotent.) A custom cns s3 service broker is also installed.\n+#\n+# Args:\n+#\t\t-y to bypass hitting a key to acknowlege seeing the displayed config info.\n+#       The default is to prompt the user to continue.\n+#\t\t-i Deploy GCE instances and stop.  Startup script will still install packages and dependencies on all VMs.\n+#          DO NOT deploy k8s, gluster-kubernetes (including S3 component), or the CNS Objet Broker\n+#\t\t-g Deploy gluster-kubernetes and stop.\n+#          DO NOT install S3 components or the CNS Object Broker\n+#\t\t-s Deploy gluster-kubernetes, S3 components and stop.\n+#          DO NOT install CNS Object Broker\n+# Note: lowercase vars are local to functions. Uppercase vars are global.\n+\n+set -euo pipefail\n+\n+# Print help\n+function print_help() {\n+\techo \"Gluster-Kubernetes GCE deployment script.\"\n+\techo \"-y to bypass hitting a key to acknowlege seeing the displayed config info.\"\n+\techo \"   The default is to prompt the user to continue.\"\n+\techo \"-i Deploy GCE instances and stop.  Startup script will still install packages and dependencies on all VMs.\"\n+\techo \"   DO NOT deploy k8s, gluster-kubernetes (including S3 component), or the CNS Objet Broker\"\n+\techo \"-g Deploy gluster-kubernetes and stop.\"\n+\techo \"   DO NOT install S3 components or the CNS Object Broker\"\n+\techo \"-s Deploy gluster-kubernetes, S3 components and stop.\"\n+\techo \"   DO NOT install CNS Object Broker\"\n+}\n+\n+# TODO add provider flag\n+# Parse out -y arg if present.\n+function parse_args() {\n+\t# 0=true, 1=false\n+\tDO_CONFIG_REVIEW=0\n+\tINSTALL_GLUSTER=0\n+\tINSTALL_OBJECT=0\n+\tINIT_KUBE=0\n+\twhile getopts yYnNigsh o; do","path":"cluster-up.sh","position":42,"original_position":42,"commit_id":"f86418d07452275410f44aee52b01d2e0aa2c311","original_commit_id":"f86418d07452275410f44aee52b01d2e0aa2c311","user":{"login":"jeffvance","id":3076896,"avatar_url":"https://avatars3.githubusercontent.com/u/3076896?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffvance","html_url":"https://github.com/jeffvance","followers_url":"https://api.github.com/users/jeffvance/followers","following_url":"https://api.github.com/users/jeffvance/following{/other_user}","gists_url":"https://api.github.com/users/jeffvance/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffvance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffvance/subscriptions","organizations_url":"https://api.github.com/users/jeffvance/orgs","repos_url":"https://api.github.com/users/jeffvance/repos","events_url":"https://api.github.com/users/jeffvance/events{/privacy}","received_events_url":"https://api.github.com/users/jeffvance/received_events","type":"User","site_admin":false},"body":"may want to add --long equivalent args later...","created_at":"2017-11-29T00:41:47Z","updated_at":"2017-11-29T00:41:47Z","html_url":"https://github.com/yard-turkey/cloud-deploy/pull/3#discussion_r153666062","pull_request_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/comments/153666062"},"html":{"href":"https://github.com/yard-turkey/cloud-deploy/pull/3#discussion_r153666062"},"pull_request":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3","id":153946371,"html_url":"https://github.com/yard-turkey/cloud-deploy/pull/3","diff_url":"https://github.com/yard-turkey/cloud-deploy/pull/3.diff","patch_url":"https://github.com/yard-turkey/cloud-deploy/pull/3.patch","issue_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/3","number":3,"state":"open","locked":false,"title":"Refactor gce lib","user":{"login":"copejon","id":6430994,"avatar_url":"https://avatars0.githubusercontent.com/u/6430994?v=4","gravatar_id":"","url":"https://api.github.com/users/copejon","html_url":"https://github.com/copejon","followers_url":"https://api.github.com/users/copejon/followers","following_url":"https://api.github.com/users/copejon/following{/other_user}","gists_url":"https://api.github.com/users/copejon/gists{/gist_id}","starred_url":"https://api.github.com/users/copejon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copejon/subscriptions","organizations_url":"https://api.github.com/users/copejon/orgs","repos_url":"https://api.github.com/users/copejon/repos","events_url":"https://api.github.com/users/copejon/events{/privacy}","received_events_url":"https://api.github.com/users/copejon/received_events","type":"User","site_admin":false},"body":"Moved functions wrapping `gcloud` calls to a new file called lib/gce.sh.  This is the first step in generalizing cloud-deploy.\r\n\r\n`gcloud ssh` calls have been left in place for the time being.  It might be useful to convert these wrapper functions use a dynamic ssh command, e.g.\r\n\r\n`$SSH user@111.11.11.11`  where `$SSH` can be either `gcloud ssh` or `ssh`.  This would give us a little more flexibility in working with different nodes via the protocol.   Let me know what ya'll think.","created_at":"2017-11-21T16:54:59Z","updated_at":"2017-11-29T00:41:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84a22204ac756f4e38df8183a1d079c247d40059","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3/commits","review_comments_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3/comments","review_comment_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/3/comments","statuses_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/statuses/f86418d07452275410f44aee52b01d2e0aa2c311","head":{"label":"yard-turkey:refactor-gce-lib","ref":"refactor-gce-lib","sha":"f86418d07452275410f44aee52b01d2e0aa2c311","user":{"login":"yard-turkey","id":33637207,"avatar_url":"https://avatars3.githubusercontent.com/u/33637207?v=4","gravatar_id":"","url":"https://api.github.com/users/yard-turkey","html_url":"https://github.com/yard-turkey","followers_url":"https://api.github.com/users/yard-turkey/followers","following_url":"https://api.github.com/users/yard-turkey/following{/other_user}","gists_url":"https://api.github.com/users/yard-turkey/gists{/gist_id}","starred_url":"https://api.github.com/users/yard-turkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yard-turkey/subscriptions","organizations_url":"https://api.github.com/users/yard-turkey/orgs","repos_url":"https://api.github.com/users/yard-turkey/repos","events_url":"https://api.github.com/users/yard-turkey/events{/privacy}","received_events_url":"https://api.github.com/users/yard-turkey/received_events","type":"Organization","site_admin":false},"repo":{"id":110591572,"name":"cloud-deploy","full_name":"yard-turkey/cloud-deploy","owner":{"login":"yard-turkey","id":33637207,"avatar_url":"https://avatars3.githubusercontent.com/u/33637207?v=4","gravatar_id":"","url":"https://api.github.com/users/yard-turkey","html_url":"https://github.com/yard-turkey","followers_url":"https://api.github.com/users/yard-turkey/followers","following_url":"https://api.github.com/users/yard-turkey/following{/other_user}","gists_url":"https://api.github.com/users/yard-turkey/gists{/gist_id}","starred_url":"https://api.github.com/users/yard-turkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yard-turkey/subscriptions","organizations_url":"https://api.github.com/users/yard-turkey/orgs","repos_url":"https://api.github.com/users/yard-turkey/repos","events_url":"https://api.github.com/users/yard-turkey/events{/privacy}","received_events_url":"https://api.github.com/users/yard-turkey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yard-turkey/cloud-deploy","description":null,"fork":false,"url":"https://api.github.com/repos/yard-turkey/cloud-deploy","forks_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/forks","keys_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/teams","hooks_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/hooks","issue_events_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/events{/number}","events_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/events","assignees_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/assignees{/user}","branches_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/branches{/branch}","tags_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/tags","blobs_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/languages","stargazers_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/stargazers","contributors_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/contributors","subscribers_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/subscribers","subscription_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/subscription","commits_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/contents/{+path}","compare_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/merges","archive_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/downloads","issues_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues{/number}","pulls_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/labels{/name}","releases_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/releases{/id}","deployments_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/deployments","created_at":"2017-11-13T19:24:51Z","updated_at":"2017-11-13T19:26:24Z","pushed_at":"2017-11-28T19:29:12Z","git_url":"git://github.com/yard-turkey/cloud-deploy.git","ssh_url":"git@github.com:yard-turkey/cloud-deploy.git","clone_url":"https://github.com/yard-turkey/cloud-deploy.git","svn_url":"https://github.com/yard-turkey/cloud-deploy","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"yard-turkey:master","ref":"master","sha":"061237792336ad35b88e53396f7d352ba21579f2","user":{"login":"yard-turkey","id":33637207,"avatar_url":"https://avatars3.githubusercontent.com/u/33637207?v=4","gravatar_id":"","url":"https://api.github.com/users/yard-turkey","html_url":"https://github.com/yard-turkey","followers_url":"https://api.github.com/users/yard-turkey/followers","following_url":"https://api.github.com/users/yard-turkey/following{/other_user}","gists_url":"https://api.github.com/users/yard-turkey/gists{/gist_id}","starred_url":"https://api.github.com/users/yard-turkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yard-turkey/subscriptions","organizations_url":"https://api.github.com/users/yard-turkey/orgs","repos_url":"https://api.github.com/users/yard-turkey/repos","events_url":"https://api.github.com/users/yard-turkey/events{/privacy}","received_events_url":"https://api.github.com/users/yard-turkey/received_events","type":"Organization","site_admin":false},"repo":{"id":110591572,"name":"cloud-deploy","full_name":"yard-turkey/cloud-deploy","owner":{"login":"yard-turkey","id":33637207,"avatar_url":"https://avatars3.githubusercontent.com/u/33637207?v=4","gravatar_id":"","url":"https://api.github.com/users/yard-turkey","html_url":"https://github.com/yard-turkey","followers_url":"https://api.github.com/users/yard-turkey/followers","following_url":"https://api.github.com/users/yard-turkey/following{/other_user}","gists_url":"https://api.github.com/users/yard-turkey/gists{/gist_id}","starred_url":"https://api.github.com/users/yard-turkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yard-turkey/subscriptions","organizations_url":"https://api.github.com/users/yard-turkey/orgs","repos_url":"https://api.github.com/users/yard-turkey/repos","events_url":"https://api.github.com/users/yard-turkey/events{/privacy}","received_events_url":"https://api.github.com/users/yard-turkey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yard-turkey/cloud-deploy","description":null,"fork":false,"url":"https://api.github.com/repos/yard-turkey/cloud-deploy","forks_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/forks","keys_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/teams","hooks_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/hooks","issue_events_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/events{/number}","events_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/events","assignees_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/assignees{/user}","branches_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/branches{/branch}","tags_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/tags","blobs_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/languages","stargazers_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/stargazers","contributors_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/contributors","subscribers_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/subscribers","subscription_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/subscription","commits_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/contents/{+path}","compare_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/merges","archive_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/downloads","issues_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues{/number}","pulls_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/labels{/name}","releases_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/releases{/id}","deployments_url":"https://api.github.com/repos/yard-turkey/cloud-deploy/deployments","created_at":"2017-11-13T19:24:51Z","updated_at":"2017-11-13T19:26:24Z","pushed_at":"2017-11-28T19:29:12Z","git_url":"git://github.com/yard-turkey/cloud-deploy.git","ssh_url":"git@github.com:yard-turkey/cloud-deploy.git","clone_url":"https://github.com/yard-turkey/cloud-deploy.git","svn_url":"https://github.com/yard-turkey/cloud-deploy","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3"},"html":{"href":"https://github.com/yard-turkey/cloud-deploy/pull/3"},"issue":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/3"},"comments":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/yard-turkey/cloud-deploy/statuses/f86418d07452275410f44aee52b01d2e0aa2c311"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jeffvance"}}