{"action":"opened","number":734,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/734","id":39896742,"html_url":"https://github.com/cloudfoundry/cf-release/pull/734","diff_url":"https://github.com/cloudfoundry/cf-release/pull/734.diff","patch_url":"https://github.com/cloudfoundry/cf-release/pull/734.patch","issue_url":"https://api.github.com/repos/cloudfoundry/cf-release/issues/734","number":734,"state":"open","locked":false,"title":"extract resource_pools property to separate file","user":{"login":"JamesClonk","id":3172084,"avatar_url":"https://avatars.githubusercontent.com/u/3172084?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesClonk","html_url":"https://github.com/JamesClonk","followers_url":"https://api.github.com/users/JamesClonk/followers","following_url":"https://api.github.com/users/JamesClonk/following{/other_user}","gists_url":"https://api.github.com/users/JamesClonk/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesClonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesClonk/subscriptions","organizations_url":"https://api.github.com/users/JamesClonk/orgs","repos_url":"https://api.github.com/users/JamesClonk/repos","events_url":"https://api.github.com/users/JamesClonk/events{/privacy}","received_events_url":"https://api.github.com/users/JamesClonk/received_events","type":"User","site_admin":false},"body":"This allows to define custom resource_pools through additional spiff template files.\r\nFor example:\r\n\r\n```yaml\r\nmeta:\r\n  resource_pools:\r\n    server_groups:\r\n      etcd: (( merge ))\r\n  stemcell: (( merge ))                                    \r\n\r\nresource_pools:\r\n  - <<: (( merge ))\r\n\r\n  - name: etcd_z1\r\n    cloud_properties:\r\n      <<: (( merge ))\r\n      instance_type: m1.medium\r\n      scheduler_hints:\r\n        group: (( meta.resource_pools.server_groups.etcd ))\r\n    network: cf1\r\n    stemcell: (( meta.stemcell ))\r\n    env: (( merge || meta.default_env ))                   \r\n\r\njobs:\r\n  - <<: (( merge ))\r\n\r\n  - name: etcd_z1\r\n    <<: (( merge ))\r\n    resource_pool: etcd_z1\r\n```\r\nThis way we can configure the openstack server-group (which is used for vm-anti-affinity) for each job separately.\r\n\r\nSigned-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>","created_at":"2015-07-14T09:21:30Z","updated_at":"2015-07-14T09:21:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/734/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/734/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry/cf-release/issues/734/comments","statuses_url":"https://api.github.com/repos/cloudfoundry/cf-release/statuses/de05399bcd3025d9051807f038930a6490a16622","head":{"label":"JamesClonk:master","ref":"master","sha":"de05399bcd3025d9051807f038930a6490a16622","user":{"login":"JamesClonk","id":3172084,"avatar_url":"https://avatars.githubusercontent.com/u/3172084?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesClonk","html_url":"https://github.com/JamesClonk","followers_url":"https://api.github.com/users/JamesClonk/followers","following_url":"https://api.github.com/users/JamesClonk/following{/other_user}","gists_url":"https://api.github.com/users/JamesClonk/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesClonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesClonk/subscriptions","organizations_url":"https://api.github.com/users/JamesClonk/orgs","repos_url":"https://api.github.com/users/JamesClonk/repos","events_url":"https://api.github.com/users/JamesClonk/events{/privacy}","received_events_url":"https://api.github.com/users/JamesClonk/received_events","type":"User","site_admin":false},"repo":{"id":39062832,"name":"cf-release","full_name":"JamesClonk/cf-release","owner":{"login":"JamesClonk","id":3172084,"avatar_url":"https://avatars.githubusercontent.com/u/3172084?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesClonk","html_url":"https://github.com/JamesClonk","followers_url":"https://api.github.com/users/JamesClonk/followers","following_url":"https://api.github.com/users/JamesClonk/following{/other_user}","gists_url":"https://api.github.com/users/JamesClonk/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesClonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesClonk/subscriptions","organizations_url":"https://api.github.com/users/JamesClonk/orgs","repos_url":"https://api.github.com/users/JamesClonk/repos","events_url":"https://api.github.com/users/JamesClonk/events{/privacy}","received_events_url":"https://api.github.com/users/JamesClonk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JamesClonk/cf-release","description":"Cloud Foundry Release","fork":true,"url":"https://api.github.com/repos/JamesClonk/cf-release","forks_url":"https://api.github.com/repos/JamesClonk/cf-release/forks","keys_url":"https://api.github.com/repos/JamesClonk/cf-release/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesClonk/cf-release/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesClonk/cf-release/teams","hooks_url":"https://api.github.com/repos/JamesClonk/cf-release/hooks","issue_events_url":"https://api.github.com/repos/JamesClonk/cf-release/issues/events{/number}","events_url":"https://api.github.com/repos/JamesClonk/cf-release/events","assignees_url":"https://api.github.com/repos/JamesClonk/cf-release/assignees{/user}","branches_url":"https://api.github.com/repos/JamesClonk/cf-release/branches{/branch}","tags_url":"https://api.github.com/repos/JamesClonk/cf-release/tags","blobs_url":"https://api.github.com/repos/JamesClonk/cf-release/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesClonk/cf-release/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesClonk/cf-release/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesClonk/cf-release/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesClonk/cf-release/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesClonk/cf-release/languages","stargazers_url":"https://api.github.com/repos/JamesClonk/cf-release/stargazers","contributors_url":"https://api.github.com/repos/JamesClonk/cf-release/contributors","subscribers_url":"https://api.github.com/repos/JamesClonk/cf-release/subscribers","subscription_url":"https://api.github.com/repos/JamesClonk/cf-release/subscription","commits_url":"https://api.github.com/repos/JamesClonk/cf-release/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesClonk/cf-release/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesClonk/cf-release/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesClonk/cf-release/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesClonk/cf-release/contents/{+path}","compare_url":"https://api.github.com/repos/JamesClonk/cf-release/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesClonk/cf-release/merges","archive_url":"https://api.github.com/repos/JamesClonk/cf-release/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesClonk/cf-release/downloads","issues_url":"https://api.github.com/repos/JamesClonk/cf-release/issues{/number}","pulls_url":"https://api.github.com/repos/JamesClonk/cf-release/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesClonk/cf-release/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesClonk/cf-release/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesClonk/cf-release/labels{/name}","releases_url":"https://api.github.com/repos/JamesClonk/cf-release/releases{/id}","created_at":"2015-07-14T08:19:01Z","updated_at":"2015-07-14T08:19:03Z","pushed_at":"2015-07-14T08:53:53Z","git_url":"git://github.com/JamesClonk/cf-release.git","ssh_url":"git@github.com:JamesClonk/cf-release.git","clone_url":"https://github.com/JamesClonk/cf-release.git","svn_url":"https://github.com/JamesClonk/cf-release","homepage":"http://www.cloudfoundry.org","size":64055,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"cloudfoundry:master","ref":"master","sha":"c56c62f8daac76db70a43f0733aa66d0c2fcd9b6","user":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":3989388,"name":"cf-release","full_name":"cloudfoundry/cf-release","owner":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry/cf-release","description":"Cloud Foundry Release","fork":false,"url":"https://api.github.com/repos/cloudfoundry/cf-release","forks_url":"https://api.github.com/repos/cloudfoundry/cf-release/forks","keys_url":"https://api.github.com/repos/cloudfoundry/cf-release/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry/cf-release/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry/cf-release/teams","hooks_url":"https://api.github.com/repos/cloudfoundry/cf-release/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry/cf-release/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry/cf-release/events","assignees_url":"https://api.github.com/repos/cloudfoundry/cf-release/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry/cf-release/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry/cf-release/tags","blobs_url":"https://api.github.com/repos/cloudfoundry/cf-release/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry/cf-release/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry/cf-release/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry/cf-release/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry/cf-release/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry/cf-release/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry/cf-release/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry/cf-release/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry/cf-release/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry/cf-release/subscription","commits_url":"https://api.github.com/repos/cloudfoundry/cf-release/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry/cf-release/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry/cf-release/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry/cf-release/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry/cf-release/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry/cf-release/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry/cf-release/merges","archive_url":"https://api.github.com/repos/cloudfoundry/cf-release/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry/cf-release/downloads","issues_url":"https://api.github.com/repos/cloudfoundry/cf-release/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry/cf-release/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry/cf-release/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry/cf-release/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry/cf-release/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry/cf-release/releases{/id}","created_at":"2012-04-11T02:31:56Z","updated_at":"2015-07-14T05:13:05Z","pushed_at":"2015-07-14T06:25:17Z","git_url":"git://github.com/cloudfoundry/cf-release.git","ssh_url":"git@github.com:cloudfoundry/cf-release.git","clone_url":"https://github.com/cloudfoundry/cf-release.git","svn_url":"https://github.com/cloudfoundry/cf-release","homepage":"http://www.cloudfoundry.org","size":64055,"stargazers_count":317,"watchers_count":317,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":384,"mirror_url":null,"open_issues_count":21,"forks":384,"open_issues":21,"watchers":317,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/734"},"html":{"href":"https://github.com/cloudfoundry/cf-release/pull/734"},"issue":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/issues/734"},"comments":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/issues/734/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/734/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/pulls/734/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry/cf-release/statuses/de05399bcd3025d9051807f038930a6490a16622"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":89,"deletions":81,"changed_files":3}}