{"action":"created","comment":{"url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/comments/39938664","id":39938664,"diff_hunk":"@@ -166,20 +166,23 @@ end\n desc \"Provisions the ElasticSearch cluster\"\n task :provision do\n   instance_count = (ENV[\"INSTANCE_COUNT\"] || \"2\").to_i\n+  data_volume_size = (ENV[\"DATA_VOLUME_SIZE\"] || \"100\").to_i\n   template = File.read(\"opsworks-service.template\")\n \n   parameters = {\n     \"SSLCertificateName\" => get_required(\"SSL_CERTIFICATE_NAME\"),\n-    \"Route53ZoneName\" => get_required(\"ROUTE53_ZONE_NAME\"),\n-    \"SearchDomainName\" => get_required(\"SEARCH_DOMAIN_NAME\"),\n-\n-    \"SshKeyName\" => ENV[\"SSH_KEY_NAME\"] || \"elasticsearch\",\n-    \"SearchUser\" => ENV[\"SEARCH_USER\"] || \"elasticsearch\",\n-    \"SearchPassword\" => ENV[\"SEARCH_PASSWORD\"] || \"pass\",\n-    \"InstanceCount\" => instance_count.to_s,\n-    \"MinMasterNodes\" => min_master_node_count(instance_count).to_s,\n-    \"ClusterName\" => \"#{environment}-search-cluster\",\n-    \"RecipeList\" => DEFAULT_RECIPES\n+    \"Route53ZoneName\"    => get_required(\"ROUTE53_ZONE_NAME\"),\n+    \"SearchDomainName\"   => get_required(\"SEARCH_DOMAIN_NAME\"),\n+\n+    \"SshKeyName\"         => ENV[\"SSH_KEY_NAME\"] || \"elasticsearch\",\n+    \"SearchUser\"         => ENV[\"SEARCH_USER\"] || \"elasticsearch\",\n+    \"SearchPassword\"     => ENV[\"SEARCH_PASSWORD\"] || \"pass\",\n+    \"InstanceDefaultOs\"  => ENV[\"INSTANCE_DEFAULT_OS\"] || \"Amazon Linux 2014.09\",","path":"Rakefile","position":34,"original_position":34,"commit_id":"96a6adf8b21fb4561ae02fcb547e37d5e3d5ce2b","original_commit_id":"96a6adf8b21fb4561ae02fcb547e37d5e3d5ce2b","user":{"login":"optimisticanshul","id":4547169,"avatar_url":"https://avatars.githubusercontent.com/u/4547169?v=3","gravatar_id":"","url":"https://api.github.com/users/optimisticanshul","html_url":"https://github.com/optimisticanshul","followers_url":"https://api.github.com/users/optimisticanshul/followers","following_url":"https://api.github.com/users/optimisticanshul/following{/other_user}","gists_url":"https://api.github.com/users/optimisticanshul/gists{/gist_id}","starred_url":"https://api.github.com/users/optimisticanshul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/optimisticanshul/subscriptions","organizations_url":"https://api.github.com/users/optimisticanshul/orgs","repos_url":"https://api.github.com/users/optimisticanshul/repos","events_url":"https://api.github.com/users/optimisticanshul/events{/privacy}","received_events_url":"https://api.github.com/users/optimisticanshul/received_events","type":"User","site_admin":false},"body":"Add Amazon Linux 2015.03 ;) latest one.","created_at":"2015-09-21T02:12:12Z","updated_at":"2015-09-21T02:12:12Z","html_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks/pull/5#discussion_r39938664","pull_request_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/comments/39938664"},"html":{"href":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks/pull/5#discussion_r39938664"},"pull_request":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5","id":45505429,"html_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks/pull/5","diff_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks/pull/5.diff","patch_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks/pull/5.patch","issue_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues/5","number":5,"state":"open","locked":false,"title":"Fix aws upgrade and remove some hardcoded params","user":{"login":"skydan","id":372686,"avatar_url":"https://avatars.githubusercontent.com/u/372686?v=3","gravatar_id":"","url":"https://api.github.com/users/skydan","html_url":"https://github.com/skydan","followers_url":"https://api.github.com/users/skydan/followers","following_url":"https://api.github.com/users/skydan/following{/other_user}","gists_url":"https://api.github.com/users/skydan/gists{/gist_id}","starred_url":"https://api.github.com/users/skydan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skydan/subscriptions","organizations_url":"https://api.github.com/users/skydan/orgs","repos_url":"https://api.github.com/users/skydan/repos","events_url":"https://api.github.com/users/skydan/events{/privacy}","received_events_url":"https://api.github.com/users/skydan/received_events","type":"User","site_admin":false},"body":"* Fix stack deletion due to new aws sdk\r\n* Fix elasticsearch-cloud-aws hardcoded region\r\n* Extract some vital hardcoded params to env variables for more flexibility","created_at":"2015-09-20T22:17:53Z","updated_at":"2015-09-21T02:12:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57b3eb838a68b0188af2e7522eac72ad383a3d86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues/5/comments","statuses_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/statuses/96a6adf8b21fb4561ae02fcb547e37d5e3d5ce2b","head":{"label":"Instamotor-Labs:master","ref":"master","sha":"96a6adf8b21fb4561ae02fcb547e37d5e3d5ce2b","user":{"login":"Instamotor-Labs","id":8084021,"avatar_url":"https://avatars.githubusercontent.com/u/8084021?v=3","gravatar_id":"","url":"https://api.github.com/users/Instamotor-Labs","html_url":"https://github.com/Instamotor-Labs","followers_url":"https://api.github.com/users/Instamotor-Labs/followers","following_url":"https://api.github.com/users/Instamotor-Labs/following{/other_user}","gists_url":"https://api.github.com/users/Instamotor-Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/Instamotor-Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Instamotor-Labs/subscriptions","organizations_url":"https://api.github.com/users/Instamotor-Labs/orgs","repos_url":"https://api.github.com/users/Instamotor-Labs/repos","events_url":"https://api.github.com/users/Instamotor-Labs/events{/privacy}","received_events_url":"https://api.github.com/users/Instamotor-Labs/received_events","type":"Organization","site_admin":false},"repo":{"id":40970209,"name":"elasticsearch-opsworks","full_name":"Instamotor-Labs/elasticsearch-opsworks","owner":{"login":"Instamotor-Labs","id":8084021,"avatar_url":"https://avatars.githubusercontent.com/u/8084021?v=3","gravatar_id":"","url":"https://api.github.com/users/Instamotor-Labs","html_url":"https://github.com/Instamotor-Labs","followers_url":"https://api.github.com/users/Instamotor-Labs/followers","following_url":"https://api.github.com/users/Instamotor-Labs/following{/other_user}","gists_url":"https://api.github.com/users/Instamotor-Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/Instamotor-Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Instamotor-Labs/subscriptions","organizations_url":"https://api.github.com/users/Instamotor-Labs/orgs","repos_url":"https://api.github.com/users/Instamotor-Labs/repos","events_url":"https://api.github.com/users/Instamotor-Labs/events{/privacy}","received_events_url":"https://api.github.com/users/Instamotor-Labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Instamotor-Labs/elasticsearch-opsworks","description":"Deploy an ElasticSearch cluster to AWS OpsWorks","fork":true,"url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks","forks_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/forks","keys_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/teams","hooks_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/hooks","issue_events_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/issues/events{/number}","events_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/events","assignees_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/assignees{/user}","branches_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/branches{/branch}","tags_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/tags","blobs_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/statuses/{sha}","languages_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/languages","stargazers_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/stargazers","contributors_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/contributors","subscribers_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/subscribers","subscription_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/subscription","commits_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/contents/{+path}","compare_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/merges","archive_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/downloads","issues_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/issues{/number}","pulls_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/pulls{/number}","milestones_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/milestones{/number}","notifications_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/labels{/name}","releases_url":"https://api.github.com/repos/Instamotor-Labs/elasticsearch-opsworks/releases{/id}","created_at":"2015-08-18T12:19:06Z","updated_at":"2015-08-18T12:19:06Z","pushed_at":"2015-09-20T22:46:46Z","git_url":"git://github.com/Instamotor-Labs/elasticsearch-opsworks.git","ssh_url":"git@github.com:Instamotor-Labs/elasticsearch-opsworks.git","clone_url":"https://github.com/Instamotor-Labs/elasticsearch-opsworks.git","svn_url":"https://github.com/Instamotor-Labs/elasticsearch-opsworks","homepage":null,"size":212,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ThoughtWorksStudios:master","ref":"master","sha":"454ae1889fef4b95259e7edfc95b031c8f5891f4","user":{"login":"ThoughtWorksStudios","id":103200,"avatar_url":"https://avatars.githubusercontent.com/u/103200?v=3","gravatar_id":"","url":"https://api.github.com/users/ThoughtWorksStudios","html_url":"https://github.com/ThoughtWorksStudios","followers_url":"https://api.github.com/users/ThoughtWorksStudios/followers","following_url":"https://api.github.com/users/ThoughtWorksStudios/following{/other_user}","gists_url":"https://api.github.com/users/ThoughtWorksStudios/gists{/gist_id}","starred_url":"https://api.github.com/users/ThoughtWorksStudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThoughtWorksStudios/subscriptions","organizations_url":"https://api.github.com/users/ThoughtWorksStudios/orgs","repos_url":"https://api.github.com/users/ThoughtWorksStudios/repos","events_url":"https://api.github.com/users/ThoughtWorksStudios/events{/privacy}","received_events_url":"https://api.github.com/users/ThoughtWorksStudios/received_events","type":"Organization","site_admin":false},"repo":{"id":26337744,"name":"elasticsearch-opsworks","full_name":"ThoughtWorksStudios/elasticsearch-opsworks","owner":{"login":"ThoughtWorksStudios","id":103200,"avatar_url":"https://avatars.githubusercontent.com/u/103200?v=3","gravatar_id":"","url":"https://api.github.com/users/ThoughtWorksStudios","html_url":"https://github.com/ThoughtWorksStudios","followers_url":"https://api.github.com/users/ThoughtWorksStudios/followers","following_url":"https://api.github.com/users/ThoughtWorksStudios/following{/other_user}","gists_url":"https://api.github.com/users/ThoughtWorksStudios/gists{/gist_id}","starred_url":"https://api.github.com/users/ThoughtWorksStudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThoughtWorksStudios/subscriptions","organizations_url":"https://api.github.com/users/ThoughtWorksStudios/orgs","repos_url":"https://api.github.com/users/ThoughtWorksStudios/repos","events_url":"https://api.github.com/users/ThoughtWorksStudios/events{/privacy}","received_events_url":"https://api.github.com/users/ThoughtWorksStudios/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks","description":"Deploy an ElasticSearch cluster to AWS OpsWorks","fork":false,"url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks","forks_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/forks","keys_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/teams","hooks_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/hooks","issue_events_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues/events{/number}","events_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/events","assignees_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/assignees{/user}","branches_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/branches{/branch}","tags_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/tags","blobs_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/statuses/{sha}","languages_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/languages","stargazers_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/stargazers","contributors_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/contributors","subscribers_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/subscribers","subscription_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/subscription","commits_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/contents/{+path}","compare_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/merges","archive_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/downloads","issues_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues{/number}","pulls_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls{/number}","milestones_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/milestones{/number}","notifications_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/labels{/name}","releases_url":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/releases{/id}","created_at":"2014-11-07T21:01:15Z","updated_at":"2015-09-03T19:43:32Z","pushed_at":"2015-09-20T22:17:54Z","git_url":"git://github.com/ThoughtWorksStudios/elasticsearch-opsworks.git","ssh_url":"git@github.com:ThoughtWorksStudios/elasticsearch-opsworks.git","clone_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks.git","svn_url":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks","homepage":null,"size":223,"stargazers_count":43,"watchers_count":43,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":4,"forks":16,"open_issues":4,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5"},"html":{"href":"https://github.com/ThoughtWorksStudios/elasticsearch-opsworks/pull/5"},"issue":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues/5"},"comments":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ThoughtWorksStudios/elasticsearch-opsworks/statuses/96a6adf8b21fb4561ae02fcb547e37d5e3d5ce2b"}}}}