{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/6","id":227603825,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NjAzODI1","html_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra/pull/6","diff_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra/pull/6.diff","patch_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra/pull/6.patch","issue_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/6","number":6,"state":"open","locked":false,"title":"Terraform 2","user":{"login":"ilya-adm77","id":43951712,"node_id":"MDQ6VXNlcjQzOTUxNzEy","avatar_url":"https://avatars2.githubusercontent.com/u/43951712?v=4","gravatar_id":"","url":"https://api.github.com/users/ilya-adm77","html_url":"https://github.com/ilya-adm77","followers_url":"https://api.github.com/users/ilya-adm77/followers","following_url":"https://api.github.com/users/ilya-adm77/following{/other_user}","gists_url":"https://api.github.com/users/ilya-adm77/gists{/gist_id}","starred_url":"https://api.github.com/users/ilya-adm77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilya-adm77/subscriptions","organizations_url":"https://api.github.com/users/ilya-adm77/orgs","repos_url":"https://api.github.com/users/ilya-adm77/repos","events_url":"https://api.github.com/users/ilya-adm77/events{/privacy}","received_events_url":"https://api.github.com/users/ilya-adm77/received_events","type":"User","site_admin":false},"body":"# Выполнено ДЗ № 7\r\n\r\nОсновное ДЗ\r\n- Научились выносить конфигурацию в отдельные модули: app, vpc и db;\r\n- Теперь на инстансах разнесены сервисы приложения и БД;\r\n- Научились передавать переменные из одних модулей в другие;\r\n- Освоили подключение модулей, создающих инстансы и правила брандмауэра, к главному файлу конфигурации;\r\n- Создали две конфигурации: stage и prod;\r\n- Подключили модуль storage-buckets из реестра модулей.\r\n\r\nДЗ *\r\n- Подключили удаленный backend в storage-bucket для хранения стейта конфигурации;\r\n- Проверили одновременное применение конфигураций - не работает, стейт в бакете блокируется;\r\n- Удалили локальные стейт-файлы и проверили, что Терраформ работает со стейтом в бакете;\r\n\r\nДЗ **\r\n- В модуль app добавили провижионер для загрузки файла deploy.sh и провижионер для загрузки шаблона puma;\r\n- В файл puma передается переменная, содержащая внутренний ip - адрес инстанса с БД;\r\n- Чтобы инстанс с БД принимал внешние подключения к базе, пришлось отредактировать конфиг mongod.conf, хотя можно и этот процесс автоматизировать через провижионеры.\r\n\r\n## PR checklist\r\n - [x] Выставил label с номером домашнего задания\r\n - [x] Выставил label с темой домашнего задания","created_at":"2018-11-01T12:30:19Z","updated_at":"2018-11-01T12:30:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1084669970,"node_id":"MDU6TGFiZWwxMDg0NjY5OTcw","url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/labels/Terraform","name":"Terraform","color":"c7e559","default":false},{"id":1084669148,"node_id":"MDU6TGFiZWwxMDg0NjY5MTQ4","url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/labels/terraform-2","name":"terraform-2","color":"8a94f2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/6/comments","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/statuses/ead922f16752b26bd4f3512ce41aca7ba749c880","head":{"label":"Otus-DevOps-2018-09:terraform-2","ref":"terraform-2","sha":"ead922f16752b26bd4f3512ce41aca7ba749c880","user":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"repo":{"id":152240627,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyNDA2Mjc=","name":"ilya-adm77_infra","full_name":"Otus-DevOps-2018-09/ilya-adm77_infra","private":false,"owner":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra","description":"ilya-adm77 Infra repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/deployments","created_at":"2018-10-09T11:38:19Z","updated_at":"2018-10-25T16:56:21Z","pushed_at":"2018-11-01T12:30:16Z","git_url":"git://github.com/Otus-DevOps-2018-09/ilya-adm77_infra.git","ssh_url":"git@github.com:Otus-DevOps-2018-09/ilya-adm77_infra.git","clone_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra.git","svn_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra","homepage":"","size":49,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Otus-DevOps-2018-09:master","ref":"master","sha":"5665cbcb11d3fc66a18a6480c0575ce13e6e337b","user":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"repo":{"id":152240627,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyNDA2Mjc=","name":"ilya-adm77_infra","full_name":"Otus-DevOps-2018-09/ilya-adm77_infra","private":false,"owner":{"login":"Otus-DevOps-2018-09","id":43857994,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzODU3OTk0","avatar_url":"https://avatars3.githubusercontent.com/u/43857994?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-09","html_url":"https://github.com/Otus-DevOps-2018-09","followers_url":"https://api.github.com/users/Otus-DevOps-2018-09/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-09/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-09/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-09/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-09/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-09/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-09/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-09/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra","description":"ilya-adm77 Infra repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/deployments","created_at":"2018-10-09T11:38:19Z","updated_at":"2018-10-25T16:56:21Z","pushed_at":"2018-11-01T12:30:16Z","git_url":"git://github.com/Otus-DevOps-2018-09/ilya-adm77_infra.git","ssh_url":"git@github.com:Otus-DevOps-2018-09/ilya-adm77_infra.git","clone_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra.git","svn_url":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra","homepage":"","size":49,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/6"},"html":{"href":"https://github.com/Otus-DevOps-2018-09/ilya-adm77_infra/pull/6"},"issue":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/6"},"comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Otus-DevOps-2018-09/ilya-adm77_infra/statuses/ead922f16752b26bd4f3512ce41aca7ba749c880"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":14,"additions":653,"deletions":4,"changed_files":35}}
{"actor":{"display_login":"ilya-adm77"}}