{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/comments/24675724","id":24675724,"diff_hunk":"@@ -0,0 +1,46 @@\n+# = Foreman Proxy Chef plugin\n+#\n+# This class installs chef plugin\n+#\n+# === Parameters:\n+#\n+# $group::        group owner of the configuration file\n+#\n+# $enabled::      enables/disables the plugin\n+#\n+# $server_url::   chef server url\n+#\n+# $client_name::  chef client name used for authentication of other client requests\n+#\n+# $private_key::  path to file containing private key for $client_name client\n+#\n+# $ssl_verify::   should we perform chef server ssl cert verification? this requires\n+#                 CA certificate installed and trusted\n+#                 type:boolean\n+#\n+# $ssl_pem_file:: if $ssl_verify is true you can specify a path to a file which\n+#                 contains certificate and related private key if the certificate\n+#                 is not globally trusted\n+#\n+class foreman_proxy::plugin::chef (\n+  $enabled      = $::foreman_proxy::plugin::chef::params::enabled,\n+  $group        = $::foreman_proxy::plugin::chef::params::group,\n+  $server_url   = $::foreman_proxy::plugin::chef::params::server_url,\n+  $client_name  = $::foreman_proxy::plugin::chef::params::client_name,\n+  $private_key  = $::foreman_proxy::plugin::chef::params::private_key,\n+  $ssl_verify   = $::foreman_proxy::plugin::chef::params::ssl_verify,\n+  $ssl_pem_file = $::foreman_proxy::plugin::chef::params::ssl_pem_file,\n+) inherits foreman_proxy::plugin::chef::params {\n+  $group_real = pick($group, $::foreman_proxy::user)\n+  validate_string($group_real)\n+\n+  foreman_proxy::plugin {'chef':\n+  } ->\n+  file {'/etc/foreman-proxy/settings.d/chef.yml':","path":"manifests/plugin/chef.pp","position":39,"original_position":39,"commit_id":"1e18ea531cfaad64e04066e5fe228e41aa6cbc15","original_commit_id":"1e18ea531cfaad64e04066e5fe228e41aa6cbc15","user":{"login":"ekohl","id":155810,"avatar_url":"https://avatars.githubusercontent.com/u/155810?v=3","gravatar_id":"","url":"https://api.github.com/users/ekohl","html_url":"https://github.com/ekohl","followers_url":"https://api.github.com/users/ekohl/followers","following_url":"https://api.github.com/users/ekohl/following{/other_user}","gists_url":"https://api.github.com/users/ekohl/gists{/gist_id}","starred_url":"https://api.github.com/users/ekohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekohl/subscriptions","organizations_url":"https://api.github.com/users/ekohl/orgs","repos_url":"https://api.github.com/users/ekohl/repos","events_url":"https://api.github.com/users/ekohl/events{/privacy}","received_events_url":"https://api.github.com/users/ekohl/received_events","type":"User","site_admin":false},"body":"Please use ```foreman_proxy::settings_file```.","created_at":"2015-02-13T16:26:04Z","updated_at":"2015-02-13T16:26:04Z","html_url":"https://github.com/theforeman/puppet-foreman_proxy/pull/150#discussion_r24675724","pull_request_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/comments/24675724"},"html":{"href":"https://github.com/theforeman/puppet-foreman_proxy/pull/150#discussion_r24675724"},"pull_request":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150","id":29276750,"html_url":"https://github.com/theforeman/puppet-foreman_proxy/pull/150","diff_url":"https://github.com/theforeman/puppet-foreman_proxy/pull/150.diff","patch_url":"https://github.com/theforeman/puppet-foreman_proxy/pull/150.patch","issue_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues/150","number":150,"state":"open","locked":false,"title":"Add smart_proxy_chef plugin support","user":{"login":"ares","id":109773,"avatar_url":"https://avatars.githubusercontent.com/u/109773?v=3","gravatar_id":"","url":"https://api.github.com/users/ares","html_url":"https://github.com/ares","followers_url":"https://api.github.com/users/ares/followers","following_url":"https://api.github.com/users/ares/following{/other_user}","gists_url":"https://api.github.com/users/ares/gists{/gist_id}","starred_url":"https://api.github.com/users/ares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ares/subscriptions","organizations_url":"https://api.github.com/users/ares/orgs","repos_url":"https://api.github.com/users/ares/repos","events_url":"https://api.github.com/users/ares/events{/privacy}","received_events_url":"https://api.github.com/users/ares/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-13T16:16:17Z","updated_at":"2015-02-13T16:26:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"660d6f177a67b005baffde4e4fe73d89b2971845","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150/commits","review_comments_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150/comments","review_comment_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues/150/comments","statuses_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/statuses/1e18ea531cfaad64e04066e5fe228e41aa6cbc15","head":{"label":"ares:master","ref":"master","sha":"1e18ea531cfaad64e04066e5fe228e41aa6cbc15","user":{"login":"ares","id":109773,"avatar_url":"https://avatars.githubusercontent.com/u/109773?v=3","gravatar_id":"","url":"https://api.github.com/users/ares","html_url":"https://github.com/ares","followers_url":"https://api.github.com/users/ares/followers","following_url":"https://api.github.com/users/ares/following{/other_user}","gists_url":"https://api.github.com/users/ares/gists{/gist_id}","starred_url":"https://api.github.com/users/ares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ares/subscriptions","organizations_url":"https://api.github.com/users/ares/orgs","repos_url":"https://api.github.com/users/ares/repos","events_url":"https://api.github.com/users/ares/events{/privacy}","received_events_url":"https://api.github.com/users/ares/received_events","type":"User","site_admin":false},"repo":{"id":11633151,"name":"puppet-foreman_proxy","full_name":"ares/puppet-foreman_proxy","owner":{"login":"ares","id":109773,"avatar_url":"https://avatars.githubusercontent.com/u/109773?v=3","gravatar_id":"","url":"https://api.github.com/users/ares","html_url":"https://github.com/ares","followers_url":"https://api.github.com/users/ares/followers","following_url":"https://api.github.com/users/ares/following{/other_user}","gists_url":"https://api.github.com/users/ares/gists{/gist_id}","starred_url":"https://api.github.com/users/ares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ares/subscriptions","organizations_url":"https://api.github.com/users/ares/orgs","repos_url":"https://api.github.com/users/ares/repos","events_url":"https://api.github.com/users/ares/events{/privacy}","received_events_url":"https://api.github.com/users/ares/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ares/puppet-foreman_proxy","description":"Puppet module for Foreman Smart Proxy","fork":true,"url":"https://api.github.com/repos/ares/puppet-foreman_proxy","forks_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/forks","keys_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/teams","hooks_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/hooks","issue_events_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/issues/events{/number}","events_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/events","assignees_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/assignees{/user}","branches_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/branches{/branch}","tags_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/tags","blobs_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/languages","stargazers_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/stargazers","contributors_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/contributors","subscribers_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/subscribers","subscription_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/subscription","commits_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/issues/comments/{number}","contents_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/contents/{+path}","compare_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/merges","archive_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/downloads","issues_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/issues{/number}","pulls_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/labels{/name}","releases_url":"https://api.github.com/repos/ares/puppet-foreman_proxy/releases{/id}","created_at":"2013-07-24T11:28:31Z","updated_at":"2015-02-13T16:12:55Z","pushed_at":"2015-02-13T16:12:55Z","git_url":"git://github.com/ares/puppet-foreman_proxy.git","ssh_url":"git@github.com:ares/puppet-foreman_proxy.git","clone_url":"https://github.com/ares/puppet-foreman_proxy.git","svn_url":"https://github.com/ares/puppet-foreman_proxy","homepage":"","size":462,"stargazers_count":0,"watchers_count":0,"language":"Puppet","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":"theforeman:master","ref":"master","sha":"c691a8cf3ba042f2c78169166724b58520df302d","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":3449602,"name":"puppet-foreman_proxy","full_name":"theforeman/puppet-foreman_proxy","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/puppet-foreman_proxy","description":"Puppet module for Foreman Smart Proxy","fork":false,"url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy","forks_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/forks","keys_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/teams","hooks_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/hooks","issue_events_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/events","assignees_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/tags","blobs_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/languages","stargazers_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/stargazers","contributors_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/contributors","subscribers_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/subscribers","subscription_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/subscription","commits_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues/comments/{number}","contents_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/merges","archive_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/downloads","issues_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/releases{/id}","created_at":"2012-02-15T13:21:09Z","updated_at":"2015-02-05T10:43:48Z","pushed_at":"2015-02-05T10:43:48Z","git_url":"git://github.com/theforeman/puppet-foreman_proxy.git","ssh_url":"git@github.com:theforeman/puppet-foreman_proxy.git","clone_url":"https://github.com/theforeman/puppet-foreman_proxy.git","svn_url":"https://github.com/theforeman/puppet-foreman_proxy","homepage":"","size":1432,"stargazers_count":19,"watchers_count":19,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":10,"forks":54,"open_issues":10,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150"},"html":{"href":"https://github.com/theforeman/puppet-foreman_proxy/pull/150"},"issue":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues/150"},"comments":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/puppet-foreman_proxy/statuses/1e18ea531cfaad64e04066e5fe228e41aa6cbc15"}}}}