{"action":"created","comment":{"url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/comments/61807960","id":61807960,"diff_hunk":"@@ -0,0 +1,70 @@\n+{% if pillar.get('policy_provider', '').lower() == 'calico' %}\n+\n+calicoctl:\n+  file.managed:\n+    - name: /usr/bin/calicoctl\n+    - source: https://github.com/projectcalico/calico-docker/releases/download/v0.18.0/calicoctl\n+    - source_hash: sha256=694d2e0d0079980d75bc807fcb6626b18e5994638aa62743d45b906e742a0eed\n+    - makedirs: True\n+    - mode: 744\n+\n+calico-policy:\n+  file.managed:\n+    - name: /usr/bin/policy\n+    - source: https://github.com/projectcalico/k8s-policy/releases/download/v0.1.3/policy\n+    - source_hash: sha256=def1b53ec0bf3ec2dce9edb7b4252a514ccd6b06c7e738a324e0a3e9ecf12bbe\n+    - makedirs: True\n+    - mode: 744\n+\n+calico-etcd:\n+  cmd.run:\n+    - unless: docker ps | grep calico-etcd\n+    - name: >\n+               docker run --name calico-etcd -d --restart=always -p 6666:6666","path":"cluster/saltbase/salt/calico/master.sls","position":23,"original_position":23,"commit_id":"f6fa7aa6ee2e1fcfd6c46336ba4d9f0c1d073982","original_commit_id":"f6fa7aa6ee2e1fcfd6c46336ba4d9f0c1d073982","user":{"login":"matthewdupre","id":9053570,"avatar_url":"https://avatars.githubusercontent.com/u/9053570?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdupre","html_url":"https://github.com/matthewdupre","followers_url":"https://api.github.com/users/matthewdupre/followers","following_url":"https://api.github.com/users/matthewdupre/following{/other_user}","gists_url":"https://api.github.com/users/matthewdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdupre/subscriptions","organizations_url":"https://api.github.com/users/matthewdupre/orgs","repos_url":"https://api.github.com/users/matthewdupre/repos","events_url":"https://api.github.com/users/matthewdupre/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdupre/received_events","type":"User","site_admin":false},"body":"I think I prefer the port map to running things in the host netns.  The static /29 isn't nice though (especially since it doesn't even explain what they're used for - what if some other feature uses part of the space, and we end up with certain combinations not working).","created_at":"2016-05-02T21:29:23Z","updated_at":"2016-05-02T21:29:23Z","html_url":"https://github.com/matthewdupre/kubernetes/pull/2#discussion_r61807960","pull_request_url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/comments/61807960"},"html":{"href":"https://github.com/matthewdupre/kubernetes/pull/2#discussion_r61807960"},"pull_request":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2","id":68599237,"html_url":"https://github.com/matthewdupre/kubernetes/pull/2","diff_url":"https://github.com/matthewdupre/kubernetes/pull/2.diff","patch_url":"https://github.com/matthewdupre/kubernetes/pull/2.patch","issue_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues/2","number":2,"state":"open","locked":false,"title":"Add new policy_provider option to Salt; supporting Calico installation","user":{"login":"matthewdupre","id":9053570,"avatar_url":"https://avatars.githubusercontent.com/u/9053570?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdupre","html_url":"https://github.com/matthewdupre","followers_url":"https://api.github.com/users/matthewdupre/followers","following_url":"https://api.github.com/users/matthewdupre/following{/other_user}","gists_url":"https://api.github.com/users/matthewdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdupre/subscriptions","organizations_url":"https://api.github.com/users/matthewdupre/orgs","repos_url":"https://api.github.com/users/matthewdupre/repos","events_url":"https://api.github.com/users/matthewdupre/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdupre/received_events","type":"User","site_admin":false},"body":"WARNING: Do not merge.  Open PR against kubernetes/master when ready instead.","created_at":"2016-05-02T18:27:37Z","updated_at":"2016-05-02T21:29:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a319355073df1a00c0ed6890237804c48a55233","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2/commits","review_comments_url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2/comments","review_comment_url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues/2/comments","statuses_url":"https://api.github.com/repos/matthewdupre/kubernetes/statuses/f6fa7aa6ee2e1fcfd6c46336ba4d9f0c1d073982","head":{"label":"matthewdupre:policy-provision","ref":"policy-provision","sha":"f6fa7aa6ee2e1fcfd6c46336ba4d9f0c1d073982","user":{"login":"matthewdupre","id":9053570,"avatar_url":"https://avatars.githubusercontent.com/u/9053570?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdupre","html_url":"https://github.com/matthewdupre","followers_url":"https://api.github.com/users/matthewdupre/followers","following_url":"https://api.github.com/users/matthewdupre/following{/other_user}","gists_url":"https://api.github.com/users/matthewdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdupre/subscriptions","organizations_url":"https://api.github.com/users/matthewdupre/orgs","repos_url":"https://api.github.com/users/matthewdupre/repos","events_url":"https://api.github.com/users/matthewdupre/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdupre/received_events","type":"User","site_admin":false},"repo":{"id":50574869,"name":"kubernetes","full_name":"matthewdupre/kubernetes","owner":{"login":"matthewdupre","id":9053570,"avatar_url":"https://avatars.githubusercontent.com/u/9053570?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdupre","html_url":"https://github.com/matthewdupre","followers_url":"https://api.github.com/users/matthewdupre/followers","following_url":"https://api.github.com/users/matthewdupre/following{/other_user}","gists_url":"https://api.github.com/users/matthewdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdupre/subscriptions","organizations_url":"https://api.github.com/users/matthewdupre/orgs","repos_url":"https://api.github.com/users/matthewdupre/repos","events_url":"https://api.github.com/users/matthewdupre/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdupre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewdupre/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/matthewdupre/kubernetes","forks_url":"https://api.github.com/repos/matthewdupre/kubernetes/forks","keys_url":"https://api.github.com/repos/matthewdupre/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewdupre/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewdupre/kubernetes/teams","hooks_url":"https://api.github.com/repos/matthewdupre/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/matthewdupre/kubernetes/events","assignees_url":"https://api.github.com/repos/matthewdupre/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/matthewdupre/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/matthewdupre/kubernetes/tags","blobs_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewdupre/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewdupre/kubernetes/languages","stargazers_url":"https://api.github.com/repos/matthewdupre/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/matthewdupre/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/matthewdupre/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/matthewdupre/kubernetes/subscription","commits_url":"https://api.github.com/repos/matthewdupre/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewdupre/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewdupre/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/matthewdupre/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewdupre/kubernetes/merges","archive_url":"https://api.github.com/repos/matthewdupre/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewdupre/kubernetes/downloads","issues_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewdupre/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewdupre/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewdupre/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/matthewdupre/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/matthewdupre/kubernetes/deployments","created_at":"2016-01-28T10:19:47Z","updated_at":"2016-01-28T10:19:59Z","pushed_at":"2016-05-02T18:27:37Z","git_url":"git://github.com/matthewdupre/kubernetes.git","ssh_url":"git@github.com:matthewdupre/kubernetes.git","clone_url":"https://github.com/matthewdupre/kubernetes.git","svn_url":"https://github.com/matthewdupre/kubernetes","homepage":"http://kubernetes.io","size":182313,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"matthewdupre:master","ref":"master","sha":"235f8f13c0e6c6369cf49585cfb4ea30869efcc1","user":{"login":"matthewdupre","id":9053570,"avatar_url":"https://avatars.githubusercontent.com/u/9053570?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdupre","html_url":"https://github.com/matthewdupre","followers_url":"https://api.github.com/users/matthewdupre/followers","following_url":"https://api.github.com/users/matthewdupre/following{/other_user}","gists_url":"https://api.github.com/users/matthewdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdupre/subscriptions","organizations_url":"https://api.github.com/users/matthewdupre/orgs","repos_url":"https://api.github.com/users/matthewdupre/repos","events_url":"https://api.github.com/users/matthewdupre/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdupre/received_events","type":"User","site_admin":false},"repo":{"id":50574869,"name":"kubernetes","full_name":"matthewdupre/kubernetes","owner":{"login":"matthewdupre","id":9053570,"avatar_url":"https://avatars.githubusercontent.com/u/9053570?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewdupre","html_url":"https://github.com/matthewdupre","followers_url":"https://api.github.com/users/matthewdupre/followers","following_url":"https://api.github.com/users/matthewdupre/following{/other_user}","gists_url":"https://api.github.com/users/matthewdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewdupre/subscriptions","organizations_url":"https://api.github.com/users/matthewdupre/orgs","repos_url":"https://api.github.com/users/matthewdupre/repos","events_url":"https://api.github.com/users/matthewdupre/events{/privacy}","received_events_url":"https://api.github.com/users/matthewdupre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewdupre/kubernetes","description":"Container Cluster Manager from Google","fork":true,"url":"https://api.github.com/repos/matthewdupre/kubernetes","forks_url":"https://api.github.com/repos/matthewdupre/kubernetes/forks","keys_url":"https://api.github.com/repos/matthewdupre/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewdupre/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewdupre/kubernetes/teams","hooks_url":"https://api.github.com/repos/matthewdupre/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/matthewdupre/kubernetes/events","assignees_url":"https://api.github.com/repos/matthewdupre/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/matthewdupre/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/matthewdupre/kubernetes/tags","blobs_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewdupre/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewdupre/kubernetes/languages","stargazers_url":"https://api.github.com/repos/matthewdupre/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/matthewdupre/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/matthewdupre/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/matthewdupre/kubernetes/subscription","commits_url":"https://api.github.com/repos/matthewdupre/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewdupre/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewdupre/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewdupre/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/matthewdupre/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewdupre/kubernetes/merges","archive_url":"https://api.github.com/repos/matthewdupre/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewdupre/kubernetes/downloads","issues_url":"https://api.github.com/repos/matthewdupre/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/matthewdupre/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewdupre/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewdupre/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewdupre/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/matthewdupre/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/matthewdupre/kubernetes/deployments","created_at":"2016-01-28T10:19:47Z","updated_at":"2016-01-28T10:19:59Z","pushed_at":"2016-05-02T18:27:37Z","git_url":"git://github.com/matthewdupre/kubernetes.git","ssh_url":"git@github.com:matthewdupre/kubernetes.git","clone_url":"https://github.com/matthewdupre/kubernetes.git","svn_url":"https://github.com/matthewdupre/kubernetes","homepage":"http://kubernetes.io","size":182313,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2"},"html":{"href":"https://github.com/matthewdupre/kubernetes/pull/2"},"issue":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/issues/2"},"comments":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/matthewdupre/kubernetes/statuses/f6fa7aa6ee2e1fcfd6c46336ba4d9f0c1d073982"}}}}