{"action":"created","comment":{"url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/comments/27843105","id":27843105,"diff_hunk":"@@ -0,0 +1,35 @@\n+#\n+# Cookbook Name:: osl-jenkins\n+# Recipe:: haproxy\n+#\n+# Copyright 2014, Oregon State University\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+haproxy = node.default['haproxy']\n+\n+haproxy['enable_ssl'] = true\n+haproxy['frontend_max_connections'] = '2000 \\n' \\\n+  '  redirect scheme https if !{ ssl_fc }'\n+haproxy['ssl_incoming_port'] = '443 ssl crt /etc/pki/tls/wildcard.pem ' \\\n+  'ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:' \\\n+  'ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS no-sslv3'\n+haproxy['ssl_httpchk'] = false\n+haproxy['members'] = [\n+  {\n+    'hostname' => 'jenkins',\n+    'ipaddress' => '127.0.0.1',\n+    'port' => '8080'\n+  }\n+]","path":"recipes/haproxy.rb","position":35,"original_position":35,"commit_id":"c1463ace2db7d845d1fc675a86c124420315c1b0","original_commit_id":"c1463ace2db7d845d1fc675a86c124420315c1b0","user":{"login":"bramwelt","id":324567,"avatar_url":"https://avatars.githubusercontent.com/u/324567?v=3","gravatar_id":"","url":"https://api.github.com/users/bramwelt","html_url":"https://github.com/bramwelt","followers_url":"https://api.github.com/users/bramwelt/followers","following_url":"https://api.github.com/users/bramwelt/following{/other_user}","gists_url":"https://api.github.com/users/bramwelt/gists{/gist_id}","starred_url":"https://api.github.com/users/bramwelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramwelt/subscriptions","organizations_url":"https://api.github.com/users/bramwelt/orgs","repos_url":"https://api.github.com/users/bramwelt/repos","events_url":"https://api.github.com/users/bramwelt/events{/privacy}","received_events_url":"https://api.github.com/users/bramwelt/received_events","type":"User","site_admin":false},"body":"The problem with this notation is that it will replace all the entire `haproxy` attribute hash, not update the specific attributes that need to be changed. That is definitely not what we want for a wrapper recipe.","created_at":"2015-04-07T00:21:46Z","updated_at":"2015-04-07T00:21:46Z","html_url":"https://github.com/osuosl-cookbooks/osl-jenkins/pull/4#discussion_r27843105","pull_request_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/comments/27843105"},"html":{"href":"https://github.com/osuosl-cookbooks/osl-jenkins/pull/4#discussion_r27843105"},"pull_request":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4","id":32450283,"html_url":"https://github.com/osuosl-cookbooks/osl-jenkins/pull/4","diff_url":"https://github.com/osuosl-cookbooks/osl-jenkins/pull/4.diff","patch_url":"https://github.com/osuosl-cookbooks/osl-jenkins/pull/4.patch","issue_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/4","number":4,"state":"open","locked":false,"title":"Add haproxy Recipe","user":{"login":"bramwelt","id":324567,"avatar_url":"https://avatars.githubusercontent.com/u/324567?v=3","gravatar_id":"","url":"https://api.github.com/users/bramwelt","html_url":"https://github.com/bramwelt","followers_url":"https://api.github.com/users/bramwelt/followers","following_url":"https://api.github.com/users/bramwelt/following{/other_user}","gists_url":"https://api.github.com/users/bramwelt/gists{/gist_id}","starred_url":"https://api.github.com/users/bramwelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramwelt/subscriptions","organizations_url":"https://api.github.com/users/bramwelt/orgs","repos_url":"https://api.github.com/users/bramwelt/repos","events_url":"https://api.github.com/users/bramwelt/events{/privacy}","received_events_url":"https://api.github.com/users/bramwelt/received_events","type":"User","site_admin":false},"body":"Adds the haproxy recipe for setting the default attributes required for proxying HTTPS requests to/from Jenkins.\r\n\r\nIncludes an update to the README.","created_at":"2015-04-01T19:08:32Z","updated_at":"2015-04-07T00:21:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a97487298dcb9fe7aa02af3ba81aeebba7cc0f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4/commits","review_comments_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4/comments","review_comment_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/4/comments","statuses_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/statuses/c1463ace2db7d845d1fc675a86c124420315c1b0","head":{"label":"osuosl-cookbooks:bramwelt/add-haproxy-recipe","ref":"bramwelt/add-haproxy-recipe","sha":"c1463ace2db7d845d1fc675a86c124420315c1b0","user":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":25012382,"name":"osl-jenkins","full_name":"osuosl-cookbooks/osl-jenkins","owner":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl-cookbooks/osl-jenkins","description":"Manages Jenkins Master & Slave Servers","fork":false,"url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins","forks_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/forks","keys_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/teams","hooks_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/hooks","issue_events_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/events","assignees_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/tags","blobs_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/languages","stargazers_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/stargazers","contributors_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/contributors","subscribers_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/subscribers","subscription_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/subscription","commits_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/merges","archive_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/downloads","issues_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/labels{/name}","releases_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/releases{/id}","created_at":"2014-10-09T23:15:34Z","updated_at":"2015-04-02T21:00:06Z","pushed_at":"2015-04-03T17:51:40Z","git_url":"git://github.com/osuosl-cookbooks/osl-jenkins.git","ssh_url":"git@github.com:osuosl-cookbooks/osl-jenkins.git","clone_url":"https://github.com/osuosl-cookbooks/osl-jenkins.git","svn_url":"https://github.com/osuosl-cookbooks/osl-jenkins","homepage":null,"size":336,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"osuosl-cookbooks:master","ref":"master","sha":"6257729343f1c967d771b6e7520e975ae8819c37","user":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":25012382,"name":"osl-jenkins","full_name":"osuosl-cookbooks/osl-jenkins","owner":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=3","gravatar_id":"","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl-cookbooks/osl-jenkins","description":"Manages Jenkins Master & Slave Servers","fork":false,"url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins","forks_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/forks","keys_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/teams","hooks_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/hooks","issue_events_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/events","assignees_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/tags","blobs_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/languages","stargazers_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/stargazers","contributors_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/contributors","subscribers_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/subscribers","subscription_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/subscription","commits_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/merges","archive_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/downloads","issues_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/labels{/name}","releases_url":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/releases{/id}","created_at":"2014-10-09T23:15:34Z","updated_at":"2015-04-02T21:00:06Z","pushed_at":"2015-04-03T17:51:40Z","git_url":"git://github.com/osuosl-cookbooks/osl-jenkins.git","ssh_url":"git@github.com:osuosl-cookbooks/osl-jenkins.git","clone_url":"https://github.com/osuosl-cookbooks/osl-jenkins.git","svn_url":"https://github.com/osuosl-cookbooks/osl-jenkins","homepage":null,"size":336,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4"},"html":{"href":"https://github.com/osuosl-cookbooks/osl-jenkins/pull/4"},"issue":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/4"},"comments":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/osuosl-cookbooks/osl-jenkins/statuses/c1463ace2db7d845d1fc675a86c124420315c1b0"}}}}