{"action":"created","comment":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/comments/41292823","id":41292823,"diff_hunk":"@@ -0,0 +1,40 @@\n+# AMQP broker configuration for agents and manager\n+# Primarily used by celery, so provided in an appropriate format\n+from cloudify import constants\n+import os\n+from pkg_resources import resource_filename\n+import ssl\n+import yaml\n+\n+# Load config\n+conf_file_path = resource_filename(\n+    __name__,\n+    os.path.join('resources', 'broker_conf.yaml'),","path":"cloudify/broker_conf.py","position":12,"original_position":12,"commit_id":"7d4231389d79b4fcf40713454a4bf703c203d4d0","original_commit_id":"7d4231389d79b4fcf40713454a4bf703c203d4d0","user":{"login":"geokala","id":8859114,"avatar_url":"https://avatars.githubusercontent.com/u/8859114?v=3","gravatar_id":"","url":"https://api.github.com/users/geokala","html_url":"https://github.com/geokala","followers_url":"https://api.github.com/users/geokala/followers","following_url":"https://api.github.com/users/geokala/following{/other_user}","gists_url":"https://api.github.com/users/geokala/gists{/gist_id}","starred_url":"https://api.github.com/users/geokala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geokala/subscriptions","organizations_url":"https://api.github.com/users/geokala/orgs","repos_url":"https://api.github.com/users/geokala/repos","events_url":"https://api.github.com/users/geokala/events{/privacy}","received_events_url":"https://api.github.com/users/geokala/received_events","type":"User","site_admin":false},"body":"Agreed, a more reasonable location would be good. The pkg_resources approach was used after discussion with @nir0s - because trying to determine what path to put the agent in on, e.g. a newly deployed host was not something we could see a simple way of doing when we first discussed it.\r\nIs there a sensible way for us to determine the location of the conf file on both Windows and Linux, and without requiring admin credentials?","created_at":"2015-10-06T17:10:50Z","updated_at":"2015-10-06T17:10:50Z","html_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common/pull/142#discussion_r41292823","pull_request_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/comments/41292823"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-plugins-common/pull/142#discussion_r41292823"},"pull_request":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142","id":46259202,"html_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common/pull/142","diff_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common/pull/142.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common/pull/142.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues/142","number":142,"state":"open","locked":false,"title":"Cfy 3224 support rabbitmq security","user":{"login":"geokala","id":8859114,"avatar_url":"https://avatars.githubusercontent.com/u/8859114?v=3","gravatar_id":"","url":"https://api.github.com/users/geokala","html_url":"https://github.com/geokala","followers_url":"https://api.github.com/users/geokala/followers","following_url":"https://api.github.com/users/geokala/following{/other_user}","gists_url":"https://api.github.com/users/geokala/gists{/gist_id}","starred_url":"https://api.github.com/users/geokala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geokala/subscriptions","organizations_url":"https://api.github.com/users/geokala/orgs","repos_url":"https://api.github.com/users/geokala/repos","events_url":"https://api.github.com/users/geokala/events{/privacy}","received_events_url":"https://api.github.com/users/geokala/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-29T10:19:30Z","updated_at":"2015-10-06T17:10:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe5e4937f334fe4c9d0f991570ab42319c1a5cdf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142/comments","review_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues/142/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/statuses/7d4231389d79b4fcf40713454a4bf703c203d4d0","head":{"label":"geokala:CFY-3224-Support-rabbitmq-security","ref":"CFY-3224-Support-rabbitmq-security","sha":"7d4231389d79b4fcf40713454a4bf703c203d4d0","user":{"login":"geokala","id":8859114,"avatar_url":"https://avatars.githubusercontent.com/u/8859114?v=3","gravatar_id":"","url":"https://api.github.com/users/geokala","html_url":"https://github.com/geokala","followers_url":"https://api.github.com/users/geokala/followers","following_url":"https://api.github.com/users/geokala/following{/other_user}","gists_url":"https://api.github.com/users/geokala/gists{/gist_id}","starred_url":"https://api.github.com/users/geokala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geokala/subscriptions","organizations_url":"https://api.github.com/users/geokala/orgs","repos_url":"https://api.github.com/users/geokala/repos","events_url":"https://api.github.com/users/geokala/events{/privacy}","received_events_url":"https://api.github.com/users/geokala/received_events","type":"User","site_admin":false},"repo":{"id":34337253,"name":"cloudify-plugins-common","full_name":"geokala/cloudify-plugins-common","owner":{"login":"geokala","id":8859114,"avatar_url":"https://avatars.githubusercontent.com/u/8859114?v=3","gravatar_id":"","url":"https://api.github.com/users/geokala","html_url":"https://github.com/geokala","followers_url":"https://api.github.com/users/geokala/followers","following_url":"https://api.github.com/users/geokala/following{/other_user}","gists_url":"https://api.github.com/users/geokala/gists{/gist_id}","starred_url":"https://api.github.com/users/geokala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geokala/subscriptions","organizations_url":"https://api.github.com/users/geokala/orgs","repos_url":"https://api.github.com/users/geokala/repos","events_url":"https://api.github.com/users/geokala/events{/privacy}","received_events_url":"https://api.github.com/users/geokala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geokala/cloudify-plugins-common","description":"Cloudify Resources for Cloudify Plugins","fork":true,"url":"https://api.github.com/repos/geokala/cloudify-plugins-common","forks_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/forks","keys_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/teams","hooks_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/hooks","issue_events_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/issues/events{/number}","events_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/events","assignees_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/assignees{/user}","branches_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/branches{/branch}","tags_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/tags","blobs_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/statuses/{sha}","languages_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/languages","stargazers_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/stargazers","contributors_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/contributors","subscribers_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/subscribers","subscription_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/subscription","commits_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/contents/{+path}","compare_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/merges","archive_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/downloads","issues_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/issues{/number}","pulls_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/pulls{/number}","milestones_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/milestones{/number}","notifications_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/labels{/name}","releases_url":"https://api.github.com/repos/geokala/cloudify-plugins-common/releases{/id}","created_at":"2015-04-21T15:59:00Z","updated_at":"2015-04-21T15:59:00Z","pushed_at":"2015-10-06T16:01:29Z","git_url":"git://github.com/geokala/cloudify-plugins-common.git","ssh_url":"git@github.com:geokala/cloudify-plugins-common.git","clone_url":"https://github.com/geokala/cloudify-plugins-common.git","svn_url":"https://github.com/geokala/cloudify-plugins-common","homepage":null,"size":2267,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"cloudify-cosmo:master","ref":"master","sha":"940366250621c08673c04a4a4b20308a95227893","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":18327646,"name":"cloudify-plugins-common","full_name":"cloudify-cosmo/cloudify-plugins-common","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common","description":"Cloudify Resources for Cloudify Plugins","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/releases{/id}","created_at":"2014-04-01T11:49:16Z","updated_at":"2015-08-06T07:25:49Z","pushed_at":"2015-10-06T16:47:56Z","git_url":"git://github.com/cloudify-cosmo/cloudify-plugins-common.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-plugins-common.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-plugins-common","homepage":null,"size":7503,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":4,"forks":13,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-plugins-common/pull/142"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues/142"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-plugins-common/statuses/7d4231389d79b4fcf40713454a4bf703c203d4d0"}}}}