{"action":"created","comment":{"url":"https://api.github.com/repos/apache/brooklyn-docs/pulls/comments/86766927","pull_request_review_id":7406568,"id":86766927,"diff_hunk":"@@ -0,0 +1,34 @@\n+---\n+title: Customizing Location Ports\n+layout: website-normal\n+---\n+\n+## Opening ports during startup.\n+\n+Use the `org.apache.brooklyn.location.jclouds.networking.SharedLocationSecurityGroupCustomizer` location customizer.\n+Example:\n+\n+    name: ports @ AWS\n+    location:\n+      jclouds:aws-ec2:us-west-2:\n+        customizers:\n+        - $brooklyn:object:\n+            type: org.apache.brooklyn.location.jclouds.networking.SharedLocationSecurityGroupCustomizer\n+            object.fields: {tcpPortRanges: [\"900-910\", \"915\", \"22\"], udpPortRanges: [\"100\",\"200-300\"], cidr: \"82.40.153.101/24\"}\n+        - $brooklyn:object:\n+            type: org.apache.brooklyn.location.jclouds.networking.SharedLocationSecurityGroupCustomizer\n+            object.fields: {tcpPortRanges: [\"900-910\", \"915\", \"22\"], udpPortRanges: [\"100\",\"200-300\"], cidr: \"10.40.153.101/16\"}","path":"guide/ops/locations/customizing_location_ports.md","position":20,"original_position":20,"commit_id":"8308fc2230d5949377579b25e7e289b44a5c1eab","original_commit_id":"8308fc2230d5949377579b25e7e289b44a5c1eab","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"body":"Perhaps just show the one example `SharedLocationSecurityGroupCustomizer`. The duplication (to open it to the second cird, with all the same ports) looks cumbersome and is probably not the most common pattern.","created_at":"2016-11-07T12:38:22Z","updated_at":"2016-11-07T12:38:22Z","html_url":"https://github.com/apache/brooklyn-docs/pull/119#discussion_r86766927","pull_request_url":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/apache/brooklyn-docs/pulls/comments/86766927"},"html":{"href":"https://github.com/apache/brooklyn-docs/pull/119#discussion_r86766927"},"pull_request":{"href":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119","id":91454165,"html_url":"https://github.com/apache/brooklyn-docs/pull/119","diff_url":"https://github.com/apache/brooklyn-docs/pull/119.diff","patch_url":"https://github.com/apache/brooklyn-docs/pull/119.patch","issue_url":"https://api.github.com/repos/apache/brooklyn-docs/issues/119","number":119,"state":"open","locked":false,"title":"Document opening ports","user":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-28T21:19:50Z","updated_at":"2016-11-07T12:38:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30eb312678d9b317c230b4ba05d50db1699f6369","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119/commits","review_comments_url":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119/comments","review_comment_url":"https://api.github.com/repos/apache/brooklyn-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/brooklyn-docs/issues/119/comments","statuses_url":"https://api.github.com/repos/apache/brooklyn-docs/statuses/8308fc2230d5949377579b25e7e289b44a5c1eab","head":{"label":"bostko:ports_opening","ref":"ports_opening","sha":"8308fc2230d5949377579b25e7e289b44a5c1eab","user":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"repo":{"id":52004758,"name":"brooklyn-docs","full_name":"bostko/brooklyn-docs","owner":{"login":"bostko","id":1595054,"avatar_url":"https://avatars.githubusercontent.com/u/1595054?v=3","gravatar_id":"","url":"https://api.github.com/users/bostko","html_url":"https://github.com/bostko","followers_url":"https://api.github.com/users/bostko/followers","following_url":"https://api.github.com/users/bostko/following{/other_user}","gists_url":"https://api.github.com/users/bostko/gists{/gist_id}","starred_url":"https://api.github.com/users/bostko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostko/subscriptions","organizations_url":"https://api.github.com/users/bostko/orgs","repos_url":"https://api.github.com/users/bostko/repos","events_url":"https://api.github.com/users/bostko/events{/privacy}","received_events_url":"https://api.github.com/users/bostko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bostko/brooklyn-docs","description":"Mirror of Apache Brooklyn docs","fork":true,"url":"https://api.github.com/repos/bostko/brooklyn-docs","forks_url":"https://api.github.com/repos/bostko/brooklyn-docs/forks","keys_url":"https://api.github.com/repos/bostko/brooklyn-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bostko/brooklyn-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bostko/brooklyn-docs/teams","hooks_url":"https://api.github.com/repos/bostko/brooklyn-docs/hooks","issue_events_url":"https://api.github.com/repos/bostko/brooklyn-docs/issues/events{/number}","events_url":"https://api.github.com/repos/bostko/brooklyn-docs/events","assignees_url":"https://api.github.com/repos/bostko/brooklyn-docs/assignees{/user}","branches_url":"https://api.github.com/repos/bostko/brooklyn-docs/branches{/branch}","tags_url":"https://api.github.com/repos/bostko/brooklyn-docs/tags","blobs_url":"https://api.github.com/repos/bostko/brooklyn-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bostko/brooklyn-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bostko/brooklyn-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bostko/brooklyn-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bostko/brooklyn-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/bostko/brooklyn-docs/languages","stargazers_url":"https://api.github.com/repos/bostko/brooklyn-docs/stargazers","contributors_url":"https://api.github.com/repos/bostko/brooklyn-docs/contributors","subscribers_url":"https://api.github.com/repos/bostko/brooklyn-docs/subscribers","subscription_url":"https://api.github.com/repos/bostko/brooklyn-docs/subscription","commits_url":"https://api.github.com/repos/bostko/brooklyn-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bostko/brooklyn-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bostko/brooklyn-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bostko/brooklyn-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bostko/brooklyn-docs/contents/{+path}","compare_url":"https://api.github.com/repos/bostko/brooklyn-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bostko/brooklyn-docs/merges","archive_url":"https://api.github.com/repos/bostko/brooklyn-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bostko/brooklyn-docs/downloads","issues_url":"https://api.github.com/repos/bostko/brooklyn-docs/issues{/number}","pulls_url":"https://api.github.com/repos/bostko/brooklyn-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/bostko/brooklyn-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/bostko/brooklyn-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bostko/brooklyn-docs/labels{/name}","releases_url":"https://api.github.com/repos/bostko/brooklyn-docs/releases{/id}","deployments_url":"https://api.github.com/repos/bostko/brooklyn-docs/deployments","created_at":"2016-02-18T12:09:12Z","updated_at":"2016-02-18T12:09:13Z","pushed_at":"2016-10-28T21:19:30Z","git_url":"git://github.com/bostko/brooklyn-docs.git","ssh_url":"git@github.com:bostko/brooklyn-docs.git","clone_url":"https://github.com/bostko/brooklyn-docs.git","svn_url":"https://github.com/bostko/brooklyn-docs","homepage":null,"size":21951,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"apache:master","ref":"master","sha":"adf562c36670db8c0b9193e828a927aa06e3d910","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":47246079,"name":"brooklyn-docs","full_name":"apache/brooklyn-docs","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/brooklyn-docs","description":"Mirror of Apache Brooklyn docs","fork":false,"url":"https://api.github.com/repos/apache/brooklyn-docs","forks_url":"https://api.github.com/repos/apache/brooklyn-docs/forks","keys_url":"https://api.github.com/repos/apache/brooklyn-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/brooklyn-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/brooklyn-docs/teams","hooks_url":"https://api.github.com/repos/apache/brooklyn-docs/hooks","issue_events_url":"https://api.github.com/repos/apache/brooklyn-docs/issues/events{/number}","events_url":"https://api.github.com/repos/apache/brooklyn-docs/events","assignees_url":"https://api.github.com/repos/apache/brooklyn-docs/assignees{/user}","branches_url":"https://api.github.com/repos/apache/brooklyn-docs/branches{/branch}","tags_url":"https://api.github.com/repos/apache/brooklyn-docs/tags","blobs_url":"https://api.github.com/repos/apache/brooklyn-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/brooklyn-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/brooklyn-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/brooklyn-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/brooklyn-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/brooklyn-docs/languages","stargazers_url":"https://api.github.com/repos/apache/brooklyn-docs/stargazers","contributors_url":"https://api.github.com/repos/apache/brooklyn-docs/contributors","subscribers_url":"https://api.github.com/repos/apache/brooklyn-docs/subscribers","subscription_url":"https://api.github.com/repos/apache/brooklyn-docs/subscription","commits_url":"https://api.github.com/repos/apache/brooklyn-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/brooklyn-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/brooklyn-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/brooklyn-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/brooklyn-docs/contents/{+path}","compare_url":"https://api.github.com/repos/apache/brooklyn-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/brooklyn-docs/merges","archive_url":"https://api.github.com/repos/apache/brooklyn-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/brooklyn-docs/downloads","issues_url":"https://api.github.com/repos/apache/brooklyn-docs/issues{/number}","pulls_url":"https://api.github.com/repos/apache/brooklyn-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/brooklyn-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/brooklyn-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/brooklyn-docs/labels{/name}","releases_url":"https://api.github.com/repos/apache/brooklyn-docs/releases{/id}","deployments_url":"https://api.github.com/repos/apache/brooklyn-docs/deployments","created_at":"2015-12-02T08:00:06Z","updated_at":"2016-10-26T05:38:11Z","pushed_at":"2016-11-07T12:11:22Z","git_url":"git://github.com/apache/brooklyn-docs.git","ssh_url":"git@github.com:apache/brooklyn-docs.git","clone_url":"https://github.com/apache/brooklyn-docs.git","svn_url":"https://github.com/apache/brooklyn-docs","homepage":null,"size":21992,"stargazers_count":6,"watchers_count":6,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":"git://git.apache.org/brooklyn-docs.git","open_issues_count":5,"forks":37,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119"},"html":{"href":"https://github.com/apache/brooklyn-docs/pull/119"},"issue":{"href":"https://api.github.com/repos/apache/brooklyn-docs/issues/119"},"comments":{"href":"https://api.github.com/repos/apache/brooklyn-docs/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/brooklyn-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/brooklyn-docs/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/apache/brooklyn-docs/statuses/8308fc2230d5949377579b25e7e289b44a5c1eab"}}}}
{"actor":{"display_login":"aledsage"}}