)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"f1657c706aaefea58056956818b592e42c03f50e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Adds the ability to provide user certificates to HAProxy"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This could be done in the same way as horizon, by adding in your"},{"line_number":10,"context_line":"user variables the haproxy_user_* variables with the path on your"},{"line_number":11,"context_line":"certificates."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa1b9901_8b44f649","line":9,"updated":"2015-08-21 09:21:17.000000000","message":"While it\u0027s not essential, it often helps developers (and documenters) when the commit message has details regarding what\u0027s changed, why and how to use any new functionality. An example of something that could be consumed here is in https://github.com/stackforge/os-ansible-deployment/commit/3a14a988b921627fccfd930ae292381d3338a294","commit_id":"150a7c515d9fea1f5604e20f320a0723986fc015"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"621886b8bc62962fb05e184069afd4b9d73473dd","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Adds the ability to provide user certificates to HAProxy"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This could be done in the same way as horizon, by adding in your"},{"line_number":10,"context_line":"user variables the haproxy_user_* variables with the path on your"},{"line_number":11,"context_line":"certificates."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa1b9901_79058a12","line":9,"in_reply_to":"fa1b9901_8b44f649","updated":"2015-08-22 17:22:04.000000000","message":"Thanks for the example.\n\nI took it as inspiration.","commit_id":"150a7c515d9fea1f5604e20f320a0723986fc015"}],"playbooks/roles/haproxy_server/defaults/main.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"411abd3bf701d09801406fae4c8c7b29bf2454ae","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"fa1b9901_98052e47","line":72,"updated":"2015-08-21 09:18:57.000000000","message":"Can you add a similar set of comments like https://github.com/stackforge/os-ansible-deployment/blob/master/playbooks/roles/os_horizon/defaults/main.yml#L72-L75 so that a role user understands how to implement the user provided certs?","commit_id":"9f4bf4d92154e9cf039801e0c78d8e304543fb80"}],"playbooks/roles/haproxy_server/tasks/haproxy_ssl_key_create.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"135edd01baa7ad6b6cc604951a5e1ffb50899964","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    -out {{ haproxy_ssl_cert }}"},{"line_number":33,"context_line":"    -extensions v3_ca"},{"line_number":34,"context_line":"    creates\u003d{{ haproxy_ssl_cert }}"},{"line_number":35,"context_line":"  notify: Restart haproxy"},{"line_number":36,"context_line":"  tags:"},{"line_number":37,"context_line":"    - haproxy-ssl"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"fa1b9901_f0518bd9","side":"PARENT","line":35,"updated":"2015-08-24 11:41:34.000000000","message":"Why remove this?","commit_id":"dd9261de8c7e97e460e48167457aa15a9a8e66de"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"ce02a673192f7282ea8166336c7ec508ef451713","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    -out {{ haproxy_ssl_cert }}"},{"line_number":33,"context_line":"    -extensions v3_ca"},{"line_number":34,"context_line":"    creates\u003d{{ haproxy_ssl_cert }}"},{"line_number":35,"context_line":"  notify: Restart haproxy"},{"line_number":36,"context_line":"  tags:"},{"line_number":37,"context_line":"    - haproxy-ssl"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"fa1b9901_51b6c13e","side":"PARENT","line":35,"in_reply_to":"fa1b9901_13b4ed32","updated":"2015-08-26 13:10:55.000000000","message":"You\u0027ve spotted a bug: If the certificate was regenerated it triggered a restart of haproxy, although it didn\u0027t regenerate the pem file used by it. It\u0027s now fixed.","commit_id":"dd9261de8c7e97e460e48167457aa15a9a8e66de"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8f3d85e462f765a3bd542725d29706e9d9d7777a","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    -out {{ haproxy_ssl_cert }}"},{"line_number":33,"context_line":"    -extensions v3_ca"},{"line_number":34,"context_line":"    creates\u003d{{ haproxy_ssl_cert }}"},{"line_number":35,"context_line":"  notify: Restart haproxy"},{"line_number":36,"context_line":"  tags:"},{"line_number":37,"context_line":"    - haproxy-ssl"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"fa1b9901_13b4ed32","side":"PARENT","line":35,"in_reply_to":"fa1b9901_76f8027d","updated":"2015-08-25 23:27:17.000000000","message":"Fair enough, but what happens when the cert used by haproxy changes as a result of this?","commit_id":"dd9261de8c7e97e460e48167457aa15a9a8e66de"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"ef7705fea9e1a7300e163809011359dd90ee8a2e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    -out {{ haproxy_ssl_cert }}"},{"line_number":33,"context_line":"    -extensions v3_ca"},{"line_number":34,"context_line":"    creates\u003d{{ haproxy_ssl_cert }}"},{"line_number":35,"context_line":"  notify: Restart haproxy"},{"line_number":36,"context_line":"  tags:"},{"line_number":37,"context_line":"    - haproxy-ssl"},{"line_number":38,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"fa1b9901_76f8027d","side":"PARENT","line":35,"in_reply_to":"fa1b9901_f0518bd9","updated":"2015-08-24 17:39:32.000000000","message":"IMO:\nGenerating a certificate that can\u0027t be used for haproxy shouldn\u0027t be a trigger to restart haproxy.\nOnly haproxy changes should be triggering a restart.","commit_id":"dd9261de8c7e97e460e48167457aa15a9a8e66de"}],"playbooks/roles/haproxy_server/tasks/haproxy_ssl_pem_generation.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"135edd01baa7ad6b6cc604951a5e1ffb50899964","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"fa1b9901_70afbb94","updated":"2015-08-24 11:41:34.000000000","message":"It\u0027s probably best to move this back into haproxy_ssl_key_create.yml seeing as its only one task.","commit_id":"4f2906a8093c553672dba10877845ceac4d3072e"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"ce02a673192f7282ea8166336c7ec508ef451713","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"fa1b9901_91c5398f","in_reply_to":"fa1b9901_53dca572","updated":"2015-08-26 13:10:55.000000000","message":"Done","commit_id":"4f2906a8093c553672dba10877845ceac4d3072e"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"ef7705fea9e1a7300e163809011359dd90ee8a2e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"fa1b9901_f973a5b2","in_reply_to":"fa1b9901_70afbb94","updated":"2015-08-24 17:39:32.000000000","message":"This has to be done if you drop a certificate or if you generate one.\n\nI could put it in key_create, as key create run after the user_provided.  However, I have the feeling this is less clear for the deployer: why would I want to check key_create for something while I don\u0027t create keys in this action? (Merely concatenating certs/keys)\n\nIf I put it in another file (another include) it would be clear that this task has to run, whether the certificate is generated (key_create) or dropped (user_provided).\n\nI could also write the code twice: one in the key_create and one in the user_provided. But I prefer a DRY approach.","commit_id":"4f2906a8093c553672dba10877845ceac4d3072e"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8f3d85e462f765a3bd542725d29706e9d9d7777a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"fa1b9901_53dca572","in_reply_to":"fa1b9901_f973a5b2","updated":"2015-08-25 23:27:17.000000000","message":"I\u0027m thinking that perhaps all the ssl related tasks can simply go into one task file called haproxy_ssl.yml or something to that effect?","commit_id":"4f2906a8093c553672dba10877845ceac4d3072e"}],"playbooks/roles/haproxy_server/tasks/haproxy_ssl_user_provided.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"411abd3bf701d09801406fae4c8c7b29bf2454ae","unresolved":false,"context_lines":[{"line_number":13,"context_line":"  tags:"},{"line_number":14,"context_line":"    - haproxy-ssl"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Create a .pem certificate file without CA"},{"line_number":17,"context_line":"  shell: \u003e"},{"line_number":18,"context_line":"    cat {{ haproxy_ssl_cert }} {{ haproxy_ssl_key }} \u003e {{ haproxy_ssl_pem }}"},{"line_number":19,"context_line":"  when: \u003e"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"fa1b9901_d842c667","line":16,"updated":"2015-08-21 09:18:57.000000000","message":"Can this be consolidated with the CA task perhaps by using haproxy_ssl_ca_cert | default() ?","commit_id":"9f4bf4d92154e9cf039801e0c78d8e304543fb80"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"9c96601828ce5a3244df2809341b0a12cfcabb6d","unresolved":false,"context_lines":[{"line_number":13,"context_line":"  tags:"},{"line_number":14,"context_line":"    - haproxy-ssl"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Create a .pem certificate file without CA"},{"line_number":17,"context_line":"  shell: \u003e"},{"line_number":18,"context_line":"    cat {{ haproxy_ssl_cert }} {{ haproxy_ssl_key }} \u003e {{ haproxy_ssl_pem }}"},{"line_number":19,"context_line":"  when: \u003e"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"fa1b9901_39171256","line":16,"in_reply_to":"fa1b9901_d842c667","updated":"2015-08-22 17:21:57.000000000","message":"haproxy_user_ssl_ca_cert is used in patchset 4.\nThey have been grouped with the same process for the self signed certificate in another include.","commit_id":"9f4bf4d92154e9cf039801e0c78d8e304543fb80"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"135edd01baa7ad6b6cc604951a5e1ffb50899964","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"- name: Drop user provided ssl cert and key"},{"line_number":3,"context_line":"  copy:"},{"line_number":4,"context_line":"    src: \"{{ item.src }}\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"fa1b9901_b078f390","line":1,"updated":"2015-08-24 11:41:34.000000000","message":"Please include Apache 2 license boilerplate.","commit_id":"4f2906a8093c553672dba10877845ceac4d3072e"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"ce02a673192f7282ea8166336c7ec508ef451713","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"- name: Drop user provided ssl cert and key"},{"line_number":3,"context_line":"  copy:"},{"line_number":4,"context_line":"    src: \"{{ item.src }}\""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"fa1b9901_91fa19bc","line":1,"in_reply_to":"fa1b9901_b078f390","updated":"2015-08-26 13:10:55.000000000","message":"Done","commit_id":"4f2906a8093c553672dba10877845ceac4d3072e"}],"playbooks/roles/haproxy_server/tasks/main.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"411abd3bf701d09801406fae4c8c7b29bf2454ae","unresolved":false,"context_lines":[{"line_number":27,"context_line":"- include: haproxy_ssl_user_provided.yml"},{"line_number":28,"context_line":"  when: \u003e"},{"line_number":29,"context_line":"    haproxy_ssl | bool and"},{"line_number":30,"context_line":"    haproxy_user_ssl_cert is defined"},{"line_number":31,"context_line":"    and haproxy_user_ssl_key is defined"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- include: haproxy_post_install.yml"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"fa1b9901_78005a02","line":30,"updated":"2015-08-21 09:18:57.000000000","message":"I don\u0027t think these extra bits are needed as the when conditionals for all tasks in haproxy_ssl_user_provided.yml will only be executed if the appropriate variables are defined anyway. Just the boolean check for whether haproxy_ssl is True is fine - although even that could be dropped I think.","commit_id":"9f4bf4d92154e9cf039801e0c78d8e304543fb80"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"9c96601828ce5a3244df2809341b0a12cfcabb6d","unresolved":false,"context_lines":[{"line_number":27,"context_line":"- include: haproxy_ssl_user_provided.yml"},{"line_number":28,"context_line":"  when: \u003e"},{"line_number":29,"context_line":"    haproxy_ssl | bool and"},{"line_number":30,"context_line":"    haproxy_user_ssl_cert is defined"},{"line_number":31,"context_line":"    and haproxy_user_ssl_key is defined"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"- include: haproxy_post_install.yml"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"fa1b9901_b90b222b","line":30,"in_reply_to":"fa1b9901_78005a02","updated":"2015-08-22 17:21:57.000000000","message":"Variables are irrelevant if there is a change in the order of the includes. This was done in patchset 4.","commit_id":"9f4bf4d92154e9cf039801e0c78d8e304543fb80"}]}
