{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/73518482","id":73518482,"diff_hunk":"@@ -0,0 +1,115 @@\n+require 'appliance_console/logging'\n+require 'appliance_console/prompts'\n+require 'English'\n+\n+module ApplianceConsole\n+  class DatabaseReplication\n+    include ApplianceConsole::Logging\n+\n+    REPMGR_CONFIG = '/etc/repmgr.conf'.freeze\n+\n+    attr_accessor :cluster_name, :node_number,\n+                  :database_name, :database_user, :database_password,\n+                  :primary_host, :standby_host\n+\n+    def ask_for_cluster_name\n+      self.cluster_name = just_ask(\"cluster name\", cluster_name)\n+    end\n+\n+    def ask_for_node_number\n+      self.node_number = ask_for_integer(\"A number uniquely identifying this node in the replication clusternode\")","path":"gems/pending/appliance_console/database_replication.rb","position":20,"original_position":20,"commit_id":"e47e49aa5bd8f199516209965a69b8b6a39d2c47","original_commit_id":"e47e49aa5bd8f199516209965a69b8b6a39d2c47","user":{"login":"jvlcek","id":729572,"avatar_url":"https://avatars.githubusercontent.com/u/729572?v=3","gravatar_id":"","url":"https://api.github.com/users/jvlcek","html_url":"https://github.com/jvlcek","followers_url":"https://api.github.com/users/jvlcek/followers","following_url":"https://api.github.com/users/jvlcek/following{/other_user}","gists_url":"https://api.github.com/users/jvlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/jvlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvlcek/subscriptions","organizations_url":"https://api.github.com/users/jvlcek/orgs","repos_url":"https://api.github.com/users/jvlcek/repos","events_url":"https://api.github.com/users/jvlcek/events{/privacy}","received_events_url":"https://api.github.com/users/jvlcek/received_events","type":"User","site_admin":false},"body":"@carbonin,\r\n\r\nThanks for the review feedback. I'm not done making the updates we discussed yesterday. I just wanted to push what I had to github when I left for the day yesterday. I'll add a comment when I am ready for you to review my updates.\r\n\r\n","created_at":"2016-08-04T13:12:48Z","updated_at":"2016-08-04T13:12:48Z","html_url":"https://github.com/ManageIQ/manageiq/pull/9585#discussion_r73518482","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/73518482"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/9585#discussion_r73518482"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585","id":76035692,"html_url":"https://github.com/ManageIQ/manageiq/pull/9585","diff_url":"https://github.com/ManageIQ/manageiq/pull/9585.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/9585.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9585","number":9585,"state":"open","locked":false,"title":"Add standby database configuration to the appliance_console","user":{"login":"jvlcek","id":729572,"avatar_url":"https://avatars.githubusercontent.com/u/729572?v=3","gravatar_id":"","url":"https://api.github.com/users/jvlcek","html_url":"https://github.com/jvlcek","followers_url":"https://api.github.com/users/jvlcek/followers","following_url":"https://api.github.com/users/jvlcek/following{/other_user}","gists_url":"https://api.github.com/users/jvlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/jvlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvlcek/subscriptions","organizations_url":"https://api.github.com/users/jvlcek/orgs","repos_url":"https://api.github.com/users/jvlcek/repos","events_url":"https://api.github.com/users/jvlcek/events{/privacy}","received_events_url":"https://api.github.com/users/jvlcek/received_events","type":"User","site_admin":false},"body":"Purpose or Intent\r\n-----------------\r\nThe purpose of this PR is to add support to the appliance_console to automate the configuration\r\nof the Standby Server Database.\r\n\r\nLinks\r\n-----\r\nhttps://www.pivotaltracker.com/projects/1608513\r\n\r\nSteps for Testing/QA\r\n--------------------\r\nTODO","created_at":"2016-07-01T20:56:21Z","updated_at":"2016-08-04T13:12:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15c98b0421e003f30f494609d48926c66f6f835c","assignee":{"login":"gtanzillo","id":76593,"avatar_url":"https://avatars.githubusercontent.com/u/76593?v=3","gravatar_id":"","url":"https://api.github.com/users/gtanzillo","html_url":"https://github.com/gtanzillo","followers_url":"https://api.github.com/users/gtanzillo/followers","following_url":"https://api.github.com/users/gtanzillo/following{/other_user}","gists_url":"https://api.github.com/users/gtanzillo/gists{/gist_id}","starred_url":"https://api.github.com/users/gtanzillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtanzillo/subscriptions","organizations_url":"https://api.github.com/users/gtanzillo/orgs","repos_url":"https://api.github.com/users/gtanzillo/repos","events_url":"https://api.github.com/users/gtanzillo/events{/privacy}","received_events_url":"https://api.github.com/users/gtanzillo/received_events","type":"User","site_admin":false},"assignees":[{"login":"gtanzillo","id":76593,"avatar_url":"https://avatars.githubusercontent.com/u/76593?v=3","gravatar_id":"","url":"https://api.github.com/users/gtanzillo","html_url":"https://github.com/gtanzillo","followers_url":"https://api.github.com/users/gtanzillo/followers","following_url":"https://api.github.com/users/gtanzillo/following{/other_user}","gists_url":"https://api.github.com/users/gtanzillo/gists{/gist_id}","starred_url":"https://api.github.com/users/gtanzillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtanzillo/subscriptions","organizations_url":"https://api.github.com/users/gtanzillo/orgs","repos_url":"https://api.github.com/users/gtanzillo/repos","events_url":"https://api.github.com/users/gtanzillo/events{/privacy}","received_events_url":"https://api.github.com/users/gtanzillo/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9585/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/e47e49aa5bd8f199516209965a69b8b6a39d2c47","head":{"label":"jvlcek:appliance_console_standby_db","ref":"appliance_console_standby_db","sha":"e47e49aa5bd8f199516209965a69b8b6a39d2c47","user":{"login":"jvlcek","id":729572,"avatar_url":"https://avatars.githubusercontent.com/u/729572?v=3","gravatar_id":"","url":"https://api.github.com/users/jvlcek","html_url":"https://github.com/jvlcek","followers_url":"https://api.github.com/users/jvlcek/followers","following_url":"https://api.github.com/users/jvlcek/following{/other_user}","gists_url":"https://api.github.com/users/jvlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/jvlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvlcek/subscriptions","organizations_url":"https://api.github.com/users/jvlcek/orgs","repos_url":"https://api.github.com/users/jvlcek/repos","events_url":"https://api.github.com/users/jvlcek/events{/privacy}","received_events_url":"https://api.github.com/users/jvlcek/received_events","type":"User","site_admin":false},"repo":{"id":20890511,"name":"manageiq","full_name":"jvlcek/manageiq","owner":{"login":"jvlcek","id":729572,"avatar_url":"https://avatars.githubusercontent.com/u/729572?v=3","gravatar_id":"","url":"https://api.github.com/users/jvlcek","html_url":"https://github.com/jvlcek","followers_url":"https://api.github.com/users/jvlcek/followers","following_url":"https://api.github.com/users/jvlcek/following{/other_user}","gists_url":"https://api.github.com/users/jvlcek/gists{/gist_id}","starred_url":"https://api.github.com/users/jvlcek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvlcek/subscriptions","organizations_url":"https://api.github.com/users/jvlcek/orgs","repos_url":"https://api.github.com/users/jvlcek/repos","events_url":"https://api.github.com/users/jvlcek/events{/privacy}","received_events_url":"https://api.github.com/users/jvlcek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jvlcek/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/jvlcek/manageiq","forks_url":"https://api.github.com/repos/jvlcek/manageiq/forks","keys_url":"https://api.github.com/repos/jvlcek/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jvlcek/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jvlcek/manageiq/teams","hooks_url":"https://api.github.com/repos/jvlcek/manageiq/hooks","issue_events_url":"https://api.github.com/repos/jvlcek/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/jvlcek/manageiq/events","assignees_url":"https://api.github.com/repos/jvlcek/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/jvlcek/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/jvlcek/manageiq/tags","blobs_url":"https://api.github.com/repos/jvlcek/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jvlcek/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jvlcek/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/jvlcek/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jvlcek/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/jvlcek/manageiq/languages","stargazers_url":"https://api.github.com/repos/jvlcek/manageiq/stargazers","contributors_url":"https://api.github.com/repos/jvlcek/manageiq/contributors","subscribers_url":"https://api.github.com/repos/jvlcek/manageiq/subscribers","subscription_url":"https://api.github.com/repos/jvlcek/manageiq/subscription","commits_url":"https://api.github.com/repos/jvlcek/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/jvlcek/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/jvlcek/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/jvlcek/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/jvlcek/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/jvlcek/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jvlcek/manageiq/merges","archive_url":"https://api.github.com/repos/jvlcek/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jvlcek/manageiq/downloads","issues_url":"https://api.github.com/repos/jvlcek/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/jvlcek/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/jvlcek/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/jvlcek/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jvlcek/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/jvlcek/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/jvlcek/manageiq/deployments","created_at":"2014-06-16T15:44:01Z","updated_at":"2016-01-22T19:11:04Z","pushed_at":"2016-08-03T21:16:09Z","git_url":"git://github.com/jvlcek/manageiq.git","ssh_url":"git@github.com:jvlcek/manageiq.git","clone_url":"https://github.com/jvlcek/manageiq.git","svn_url":"https://github.com/jvlcek/manageiq","homepage":null,"size":139872,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"ManageIQ:master","ref":"master","sha":"ed03c14edce3ef5d75dc60d310c9cfa5fcf4b282","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-08-04T01:15:42Z","pushed_at":"2016-08-04T13:12:39Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":191602,"stargazers_count":299,"watchers_count":299,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":332,"mirror_url":null,"open_issues_count":748,"forks":332,"open_issues":748,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/9585"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/9585"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/9585/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9585/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/e47e49aa5bd8f199516209965a69b8b6a39d2c47"}}}}
{"actor":{"display_login":"jvlcek"}}