{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/27","labels_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/27/comments","events_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/27/events","html_url":"https://github.com/alphagov/tsuru-ansible/pull/27","id":71583392,"number":27,"title":"Update APT cache on ssl-proxy machines","user":{"login":"dcarley","id":260438,"avatar_url":"https://avatars.githubusercontent.com/u/260438?v=3","gravatar_id":"","url":"https://api.github.com/users/dcarley","html_url":"https://github.com/dcarley","followers_url":"https://api.github.com/users/dcarley/followers","following_url":"https://api.github.com/users/dcarley/following{/other_user}","gists_url":"https://api.github.com/users/dcarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dcarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcarley/subscriptions","organizations_url":"https://api.github.com/users/dcarley/orgs","repos_url":"https://api.github.com/users/dcarley/repos","events_url":"https://api.github.com/users/dcarley/events{/privacy}","received_events_url":"https://api.github.com/users/dcarley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T13:03:40Z","updated_at":"2015-04-28T13:06:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/tsuru-ansible/pulls/27","html_url":"https://github.com/alphagov/tsuru-ansible/pull/27","diff_url":"https://github.com/alphagov/tsuru-ansible/pull/27.diff","patch_url":"https://github.com/alphagov/tsuru-ansible/pull/27.patch"},"body":"For AWS, our `cloud-config` scripts do a mixture of things, but almost\r\nalways run `apt-get update` when the machine first comes up.\r\n\r\nWe're not currently using `cloud-config` on GCE instances. Which means that\r\nthe install of Nginx by the `jdauphant.nginx` role fails because it doesn't\r\nhave up-to-date repo information.\r\n\r\nWe can't change the third-party role to do `update_cache=true` and it seems\r\nthat we can't change Ansible's default behaviour to always do this. I'm not\r\nkeen on the coupling between `cloud-config` so I don't think implementing\r\nthat for GCE is the right solution now. This seems to do the job."},"comment":{"url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/comments/97054168","html_url":"https://github.com/alphagov/tsuru-ansible/pull/27#issuecomment-97054168","issue_url":"https://api.github.com/repos/alphagov/tsuru-ansible/issues/27","id":97054168,"user":{"login":"mikkoc","id":6280048,"avatar_url":"https://avatars.githubusercontent.com/u/6280048?v=3","gravatar_id":"","url":"https://api.github.com/users/mikkoc","html_url":"https://github.com/mikkoc","followers_url":"https://api.github.com/users/mikkoc/followers","following_url":"https://api.github.com/users/mikkoc/following{/other_user}","gists_url":"https://api.github.com/users/mikkoc/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkoc/subscriptions","organizations_url":"https://api.github.com/users/mikkoc/orgs","repos_url":"https://api.github.com/users/mikkoc/repos","events_url":"https://api.github.com/users/mikkoc/events{/privacy}","received_events_url":"https://api.github.com/users/mikkoc/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T13:06:00Z","updated_at":"2015-04-28T13:06:00Z","body":"I don't see any harm in doing this even on AWS instances. Merging."}}