{"action":"created","issue":{"url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/issues/133","labels_url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/issues/133/comments","events_url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/issues/133/events","html_url":"https://github.com/logsearch/logsearch-boshrelease/pull/133","id":87529344,"number":133,"title":"Switch elasticsearch and redis to run as vcap","user":{"login":"dpb587","id":207601,"avatar_url":"https://avatars.githubusercontent.com/u/207601?v=3","gravatar_id":"","url":"https://api.github.com/users/dpb587","html_url":"https://github.com/dpb587","followers_url":"https://api.github.com/users/dpb587/followers","following_url":"https://api.github.com/users/dpb587/following{/other_user}","gists_url":"https://api.github.com/users/dpb587/gists{/gist_id}","starred_url":"https://api.github.com/users/dpb587/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpb587/subscriptions","organizations_url":"https://api.github.com/users/dpb587/orgs","repos_url":"https://api.github.com/users/dpb587/repos","events_url":"https://api.github.com/users/dpb587/events{/privacy}","received_events_url":"https://api.github.com/users/dpb587/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T22:58:48Z","updated_at":"2015-06-15T13:04:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/pulls/133","html_url":"https://github.com/logsearch/logsearch-boshrelease/pull/133","diff_url":"https://github.com/logsearch/logsearch-boshrelease/pull/133.diff","patch_url":"https://github.com/logsearch/logsearch-boshrelease/pull/133.patch"},"body":"Which avoids running as root. When upgrading through this, operators would need to correct the file permissions of the following:\r\n\r\n    $ chown -R vcap:vcap /var/vcap/store/elasticsearch\r\n    $ chown -R vcap:vcap /var/vcap/store/queue\r\n\r\nIssue #116"},"comment":{"url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/issues/comments/112063124","html_url":"https://github.com/logsearch/logsearch-boshrelease/pull/133#issuecomment-112063124","issue_url":"https://api.github.com/repos/logsearch/logsearch-boshrelease/issues/133","id":112063124,"user":{"login":"mrdavidlaing","id":227505,"avatar_url":"https://avatars.githubusercontent.com/u/227505?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdavidlaing","html_url":"https://github.com/mrdavidlaing","followers_url":"https://api.github.com/users/mrdavidlaing/followers","following_url":"https://api.github.com/users/mrdavidlaing/following{/other_user}","gists_url":"https://api.github.com/users/mrdavidlaing/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdavidlaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdavidlaing/subscriptions","organizations_url":"https://api.github.com/users/mrdavidlaing/orgs","repos_url":"https://api.github.com/users/mrdavidlaing/repos","events_url":"https://api.github.com/users/mrdavidlaing/events{/privacy}","received_events_url":"https://api.github.com/users/mrdavidlaing/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T13:04:48Z","updated_at":"2015-06-15T13:04:48Z","body":"Lets do the `chown` automatically in:\r\n\r\n* [jobs/elasticsearch/templates/bin/elasticsearch_ctl](https://github.com/logsearch/logsearch-boshrelease/blob/run-as-vcap/jobs/elasticsearch/templates/bin/elasticsearch_ctl#L23) and\r\n*  [jobs/log_parser/templates/bin/log_parser_ctl](https://github.com/logsearch/logsearch-boshrelease/blob/run-as-vcap/jobs/log_parser/templates/bin/log_parser_ctl) and \r\n* [jobs/queue/templates/bin/redis_ct](https://github.com/logsearch/logsearch-boshrelease/blob/run-as-vcap/jobs/queue/templates/bin/redis_ctl)\r\n\r\nHaving to do it manually will be a real pain on larger clusters and something that is almost guaranteed to catch people out when upgrading with rather dramatic consequences!"}}