{"action":"created","comment":{"url":"https://api.github.com/repos/hudl/Tyr/pulls/comments/34710116","id":34710116,"diff_hunk":"@@ -0,0 +1,30 @@\n+from tyr.servers.server import Server\n+\n+\n+class ElasticsearchServer(Server):\n+\n+    SERVER_TYPE = 'elasticsearch'\n+\n+    CHEF_RUNLIST = ['role[RoleElasticsearch]']\n+\n+    IAM_ROLE_POLICIES = [\n+        'allow-describe-tags',\n+        'allow-describe-instances',\n+        'allow-volume-control',\n+        'allow-update-route53-{environment}'\n+    ]\n+\n+    def __init__(self, group=None, server_type=None, instance_type=None,\n+                environment=None, ami=None, region=None, role=None,\n+                keypair=None, availability_zone=None, security_groups=None,\n+                block_devices=None, chef_path=None, subnet_id=None,\n+                dns_zones=None):\n+\n+        if server_type is None: server_type = self.SERVER_TYPE\n+\n+        super(ElasticsearchServer, self).__init__(group, server_type,\n+                                                instance_type, environment,","path":"tyr/servers/elasticsearch/server.py","position":26,"original_position":26,"commit_id":"25fd8b4dda1871d9297a1117610dd0189e1c5e40","original_commit_id":"25fd8b4dda1871d9297a1117610dd0189e1c5e40","user":{"login":"citruspi","id":2125849,"avatar_url":"https://avatars.githubusercontent.com/u/2125849?v=3","gravatar_id":"","url":"https://api.github.com/users/citruspi","html_url":"https://github.com/citruspi","followers_url":"https://api.github.com/users/citruspi/followers","following_url":"https://api.github.com/users/citruspi/following{/other_user}","gists_url":"https://api.github.com/users/citruspi/gists{/gist_id}","starred_url":"https://api.github.com/users/citruspi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citruspi/subscriptions","organizations_url":"https://api.github.com/users/citruspi/orgs","repos_url":"https://api.github.com/users/citruspi/repos","events_url":"https://api.github.com/users/citruspi/events{/privacy}","received_events_url":"https://api.github.com/users/citruspi/received_events","type":"User","site_admin":false},"body":"These are a little under-indented.","created_at":"2015-07-15T18:11:37Z","updated_at":"2015-07-15T18:11:37Z","html_url":"https://github.com/hudl/Tyr/pull/56#discussion_r34710116","pull_request_url":"https://api.github.com/repos/hudl/Tyr/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/hudl/Tyr/pulls/comments/34710116"},"html":{"href":"https://github.com/hudl/Tyr/pull/56#discussion_r34710116"},"pull_request":{"href":"https://api.github.com/repos/hudl/Tyr/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/hudl/Tyr/pulls/56","id":39612932,"html_url":"https://github.com/hudl/Tyr/pull/56","diff_url":"https://github.com/hudl/Tyr/pull/56.diff","patch_url":"https://github.com/hudl/Tyr/pull/56.patch","issue_url":"https://api.github.com/repos/hudl/Tyr/issues/56","number":56,"state":"open","locked":false,"title":"adding elasticsearch stuff","user":{"login":"malkolm","id":1512809,"avatar_url":"https://avatars.githubusercontent.com/u/1512809?v=3","gravatar_id":"","url":"https://api.github.com/users/malkolm","html_url":"https://github.com/malkolm","followers_url":"https://api.github.com/users/malkolm/followers","following_url":"https://api.github.com/users/malkolm/following{/other_user}","gists_url":"https://api.github.com/users/malkolm/gists{/gist_id}","starred_url":"https://api.github.com/users/malkolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malkolm/subscriptions","organizations_url":"https://api.github.com/users/malkolm/orgs","repos_url":"https://api.github.com/users/malkolm/repos","events_url":"https://api.github.com/users/malkolm/events{/privacy}","received_events_url":"https://api.github.com/users/malkolm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-09T18:23:59Z","updated_at":"2015-07-15T18:11:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"076b5454c8430d483da75aaefa6701ca56b5edb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hudl/Tyr/pulls/56/commits","review_comments_url":"https://api.github.com/repos/hudl/Tyr/pulls/56/comments","review_comment_url":"https://api.github.com/repos/hudl/Tyr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hudl/Tyr/issues/56/comments","statuses_url":"https://api.github.com/repos/hudl/Tyr/statuses/25fd8b4dda1871d9297a1117610dd0189e1c5e40","head":{"label":"hudl:STRUCT-add-elasticsearch","ref":"STRUCT-add-elasticsearch","sha":"25fd8b4dda1871d9297a1117610dd0189e1c5e40","user":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"repo":{"id":31391696,"name":"Tyr","full_name":"hudl/Tyr","owner":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hudl/Tyr","description":"","fork":false,"url":"https://api.github.com/repos/hudl/Tyr","forks_url":"https://api.github.com/repos/hudl/Tyr/forks","keys_url":"https://api.github.com/repos/hudl/Tyr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hudl/Tyr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hudl/Tyr/teams","hooks_url":"https://api.github.com/repos/hudl/Tyr/hooks","issue_events_url":"https://api.github.com/repos/hudl/Tyr/issues/events{/number}","events_url":"https://api.github.com/repos/hudl/Tyr/events","assignees_url":"https://api.github.com/repos/hudl/Tyr/assignees{/user}","branches_url":"https://api.github.com/repos/hudl/Tyr/branches{/branch}","tags_url":"https://api.github.com/repos/hudl/Tyr/tags","blobs_url":"https://api.github.com/repos/hudl/Tyr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hudl/Tyr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hudl/Tyr/git/refs{/sha}","trees_url":"https://api.github.com/repos/hudl/Tyr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hudl/Tyr/statuses/{sha}","languages_url":"https://api.github.com/repos/hudl/Tyr/languages","stargazers_url":"https://api.github.com/repos/hudl/Tyr/stargazers","contributors_url":"https://api.github.com/repos/hudl/Tyr/contributors","subscribers_url":"https://api.github.com/repos/hudl/Tyr/subscribers","subscription_url":"https://api.github.com/repos/hudl/Tyr/subscription","commits_url":"https://api.github.com/repos/hudl/Tyr/commits{/sha}","git_commits_url":"https://api.github.com/repos/hudl/Tyr/git/commits{/sha}","comments_url":"https://api.github.com/repos/hudl/Tyr/comments{/number}","issue_comment_url":"https://api.github.com/repos/hudl/Tyr/issues/comments{/number}","contents_url":"https://api.github.com/repos/hudl/Tyr/contents/{+path}","compare_url":"https://api.github.com/repos/hudl/Tyr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hudl/Tyr/merges","archive_url":"https://api.github.com/repos/hudl/Tyr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hudl/Tyr/downloads","issues_url":"https://api.github.com/repos/hudl/Tyr/issues{/number}","pulls_url":"https://api.github.com/repos/hudl/Tyr/pulls{/number}","milestones_url":"https://api.github.com/repos/hudl/Tyr/milestones{/number}","notifications_url":"https://api.github.com/repos/hudl/Tyr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hudl/Tyr/labels{/name}","releases_url":"https://api.github.com/repos/hudl/Tyr/releases{/id}","created_at":"2015-02-26T22:15:08Z","updated_at":"2015-05-08T19:46:22Z","pushed_at":"2015-07-15T14:36:07Z","git_url":"git://github.com/hudl/Tyr.git","ssh_url":"git@github.com:hudl/Tyr.git","clone_url":"https://github.com/hudl/Tyr.git","svn_url":"https://github.com/hudl/Tyr","homepage":null,"size":995,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":17,"forks":1,"open_issues":17,"watchers":4,"default_branch":"master"}},"base":{"label":"hudl:master","ref":"master","sha":"5968e92393916577b0cf6045127abec2b1fa8fad","user":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"repo":{"id":31391696,"name":"Tyr","full_name":"hudl/Tyr","owner":{"login":"hudl","id":123340,"avatar_url":"https://avatars.githubusercontent.com/u/123340?v=3","gravatar_id":"","url":"https://api.github.com/users/hudl","html_url":"https://github.com/hudl","followers_url":"https://api.github.com/users/hudl/followers","following_url":"https://api.github.com/users/hudl/following{/other_user}","gists_url":"https://api.github.com/users/hudl/gists{/gist_id}","starred_url":"https://api.github.com/users/hudl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hudl/subscriptions","organizations_url":"https://api.github.com/users/hudl/orgs","repos_url":"https://api.github.com/users/hudl/repos","events_url":"https://api.github.com/users/hudl/events{/privacy}","received_events_url":"https://api.github.com/users/hudl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hudl/Tyr","description":"","fork":false,"url":"https://api.github.com/repos/hudl/Tyr","forks_url":"https://api.github.com/repos/hudl/Tyr/forks","keys_url":"https://api.github.com/repos/hudl/Tyr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hudl/Tyr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hudl/Tyr/teams","hooks_url":"https://api.github.com/repos/hudl/Tyr/hooks","issue_events_url":"https://api.github.com/repos/hudl/Tyr/issues/events{/number}","events_url":"https://api.github.com/repos/hudl/Tyr/events","assignees_url":"https://api.github.com/repos/hudl/Tyr/assignees{/user}","branches_url":"https://api.github.com/repos/hudl/Tyr/branches{/branch}","tags_url":"https://api.github.com/repos/hudl/Tyr/tags","blobs_url":"https://api.github.com/repos/hudl/Tyr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hudl/Tyr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hudl/Tyr/git/refs{/sha}","trees_url":"https://api.github.com/repos/hudl/Tyr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hudl/Tyr/statuses/{sha}","languages_url":"https://api.github.com/repos/hudl/Tyr/languages","stargazers_url":"https://api.github.com/repos/hudl/Tyr/stargazers","contributors_url":"https://api.github.com/repos/hudl/Tyr/contributors","subscribers_url":"https://api.github.com/repos/hudl/Tyr/subscribers","subscription_url":"https://api.github.com/repos/hudl/Tyr/subscription","commits_url":"https://api.github.com/repos/hudl/Tyr/commits{/sha}","git_commits_url":"https://api.github.com/repos/hudl/Tyr/git/commits{/sha}","comments_url":"https://api.github.com/repos/hudl/Tyr/comments{/number}","issue_comment_url":"https://api.github.com/repos/hudl/Tyr/issues/comments{/number}","contents_url":"https://api.github.com/repos/hudl/Tyr/contents/{+path}","compare_url":"https://api.github.com/repos/hudl/Tyr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hudl/Tyr/merges","archive_url":"https://api.github.com/repos/hudl/Tyr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hudl/Tyr/downloads","issues_url":"https://api.github.com/repos/hudl/Tyr/issues{/number}","pulls_url":"https://api.github.com/repos/hudl/Tyr/pulls{/number}","milestones_url":"https://api.github.com/repos/hudl/Tyr/milestones{/number}","notifications_url":"https://api.github.com/repos/hudl/Tyr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hudl/Tyr/labels{/name}","releases_url":"https://api.github.com/repos/hudl/Tyr/releases{/id}","created_at":"2015-02-26T22:15:08Z","updated_at":"2015-05-08T19:46:22Z","pushed_at":"2015-07-15T14:36:07Z","git_url":"git://github.com/hudl/Tyr.git","ssh_url":"git@github.com:hudl/Tyr.git","clone_url":"https://github.com/hudl/Tyr.git","svn_url":"https://github.com/hudl/Tyr","homepage":null,"size":995,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":17,"forks":1,"open_issues":17,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hudl/Tyr/pulls/56"},"html":{"href":"https://github.com/hudl/Tyr/pull/56"},"issue":{"href":"https://api.github.com/repos/hudl/Tyr/issues/56"},"comments":{"href":"https://api.github.com/repos/hudl/Tyr/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/hudl/Tyr/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/hudl/Tyr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hudl/Tyr/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/hudl/Tyr/statuses/25fd8b4dda1871d9297a1117610dd0189e1c5e40"}}}}