{"action":"closed","number":18,"pull_request":{"url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/18","id":33753269,"html_url":"https://github.com/alphagov/tsuru-ansible/pull/18","diff_url":"https://github.com/alphagov/tsuru-ansible/pull/18.diff","patch_url":"https://github.com/alphagov/tsuru-ansible/pull/18.patch","issue_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/18","number":18,"state":"closed","locked":false,"title":"[#91208412] Adding a postgresql server","user":{"login":"actionjack","id":485400,"avatar_url":"https://avatars.githubusercontent.com/u/485400?v=3","gravatar_id":"","url":"https://api.github.com/users/actionjack","html_url":"https://github.com/actionjack","followers_url":"https://api.github.com/users/actionjack/followers","following_url":"https://api.github.com/users/actionjack/following{/other_user}","gists_url":"https://api.github.com/users/actionjack/gists{/gist_id}","starred_url":"https://api.github.com/users/actionjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actionjack/subscriptions","organizations_url":"https://api.github.com/users/actionjack/orgs","repos_url":"https://api.github.com/users/actionjack/repos","events_url":"https://api.github.com/users/actionjack/events{/privacy}","received_events_url":"https://api.github.com/users/actionjack/received_events","type":"User","site_admin":false},"body":"[Connect an application to a database](https://www.pivotaltracker.com/story/show/91208412)\r\n\r\n**What**\r\n\r\nThis PR is to provide a postgresql server to enable us to persist data to an application using the [postgresql api for tsuru PaaS](https://github.com/tsuru/postgres-api)\r\n\r\nThere are four subcomponents to this pull request.\r\n\r\n1. https://github.com/alphagov/tsuru-ansible/commit/16ff862d924e8b749dd1e917052f2f8e6a683ec8 Add a new virtual machine to [Amazon EC2](https://aws.amazon.com/) and\r\n[vagrant](http://www.vagrantup.com/) so we can install \r\n[PostgreSQL](http://www.postgresql.org/) on them,\r\n2. https://github.com/alphagov/tsuru-ansible/commit/9275edd17d7df27e2a0afcc4954ec7170a8f6af6 Fetch [ANXS.postgresql](https://galaxy.ansible.com/list#/roles/512)\r\nplaybook from [Ansible Galaxy](https://galaxy.ansible.com),\r\n3. https://github.com/alphagov/tsuru-ansible/commit/7719f901f7174dc8446b98efcc7e4e6019bba6af Add ansible-vault support to encrypt secret data,\r\n4. https://github.com/alphagov/tsuru-ansible/commit/c2ca721bc4216318d196b28e9aca56e36b47e0c7 Configure a postgresql server using the [ANXS.postgresql](https://galaxy.ansible.com/list#/roles/512)\r\nplaybook.\r\n\r\n**How to review this PR**\r\n\r\nI've tried to put this into logical commits so they maintain some sort of consistent narrative i.e.:\r\n* Add a machine,\r\n* Get the playbook to configure the machine,\r\n* Prepare a method to encrypt sensitive secrets that need to be protected for the machine,\r\n* Configure the machine.\r\n\r\n**Who should review this PR**\r\n\r\n* Anyone in the core team.\r\n* I paired with Jim Conner on this one.","created_at":"2015-04-21T11:47:20Z","updated_at":"2015-04-21T12:37:06Z","closed_at":"2015-04-21T12:37:06Z","merged_at":null,"merge_commit_sha":"875282bbe79e72d74229c31a0e2f9583f55cc2ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/18/commits","review_comments_url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/18/comments","review_comment_url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/18/comments","statuses_url":"https://api.github.com/repos/alphagov/tsuru-ansible/statuses/c2ca721bc4216318d196b28e9aca56e36b47e0c7","head":{"label":"alphagov:postgresql-support-attempt-3","ref":"postgresql-support-attempt-3","sha":"c2ca721bc4216318d196b28e9aca56e36b47e0c7","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":33112330,"name":"tsuru-ansible","full_name":"alphagov/tsuru-ansible","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tsuru-ansible","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-ansible","forks_url":"https://api.github.com/repos/alphagov/tsuru-ansible/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-ansible/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-ansible/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-ansible/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-ansible/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-ansible/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-ansible/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-ansible/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-ansible/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-ansible/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-ansible/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-ansible/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-ansible/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-ansible/releases{/id}","created_at":"2015-03-30T08:46:53Z","updated_at":"2015-04-20T10:57:14Z","pushed_at":"2015-04-21T11:47:20Z","git_url":"git://github.com/alphagov/tsuru-ansible.git","ssh_url":"git@github.com:alphagov/tsuru-ansible.git","clone_url":"https://github.com/alphagov/tsuru-ansible.git","svn_url":"https://github.com/alphagov/tsuru-ansible","homepage":null,"size":532,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":6,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"7468c6d8e4d99a8886697a04dd0a441918d86655","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":33112330,"name":"tsuru-ansible","full_name":"alphagov/tsuru-ansible","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tsuru-ansible","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-ansible","forks_url":"https://api.github.com/repos/alphagov/tsuru-ansible/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-ansible/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-ansible/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-ansible/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-ansible/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-ansible/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-ansible/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-ansible/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-ansible/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-ansible/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-ansible/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-ansible/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-ansible/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-ansible/releases{/id}","created_at":"2015-03-30T08:46:53Z","updated_at":"2015-04-20T10:57:14Z","pushed_at":"2015-04-21T11:47:20Z","git_url":"git://github.com/alphagov/tsuru-ansible.git","ssh_url":"git@github.com:alphagov/tsuru-ansible.git","clone_url":"https://github.com/alphagov/tsuru-ansible.git","svn_url":"https://github.com/alphagov/tsuru-ansible","homepage":null,"size":532,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/18"},"html":{"href":"https://github.com/alphagov/tsuru-ansible/pull/18"},"issue":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/18"},"comments":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/tsuru-ansible/statuses/c2ca721bc4216318d196b28e9aca56e36b47e0c7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":100,"deletions":7,"changed_files":9}}