)]}'
{"playbooks/haproxy-legacy-cleanup.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"fa1b9901_14ef25b1","updated":"2015-08-19 09:20:57.000000000","message":"I\u0027d be happy to see this as a pre-task run prior to the role\u0027s usage. I am confused, however, regarding why you\u0027d want to remove all the conf.d files?","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"}],"playbooks/haproxy-modular-install.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"fa1b9901_34a589a1","updated":"2015-08-19 09:20:57.000000000","message":"Rather make the changes to the existing playbook - this playbook isn\u0027t linked anywhere. Patch sets have history and are comparable, so don\u0027t be shy. :)","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Install haproxy"},{"line_number":17,"context_line":"  hosts: haproxy_hosts"},{"line_number":18,"context_line":"  max_fail_percentage: 20"},{"line_number":19,"context_line":"  user: root"},{"line_number":20,"context_line":"  roles:"},{"line_number":21,"context_line":"    - { role: \"haproxy_server\", tags: [ \"haproxy-server\" ] }"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"fa1b9901_3497c949","line":18,"updated":"2015-08-19 09:20:57.000000000","message":"I don\u0027t think this line should be here - why should we allow haproxy deployments to fail a bit?","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"}],"playbooks/roles/haproxy_server/handlers/main.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Restart haproxy"},{"line_number":17,"context_line":"  shell: /bin/ip addr | /bin/grep -e \"{{ external_lb_vip_address }}\" -e \" {{ internal_lb_vip_address }}\" | /usr/bin/wc -l"},{"line_number":18,"context_line":"  register: haproxy_server_bindable"},{"line_number":19,"context_line":"  notify:"},{"line_number":20,"context_line":"    - haproxy service restart"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"fa1b9901_14e40539","line":17,"updated":"2015-08-19 09:20:57.000000000","message":"The *_lb_vip_address variables are not part of the role itself (they aren\u0027t present in the defaults for the role) and are implementation specific. It\u0027s better practice to ensure that the role is a reusable unit and to leave the implementation details to the playbook that consumes it. It may perhaps be better to implement this check in some other way.","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    state: \"restarted\""},{"line_number":27,"context_line":"    pattern: \"haproxy\""},{"line_number":28,"context_line":"    enabled: \"yes\""},{"line_number":29,"context_line":"  when: haproxy_server_bindable.stdout.find(\u00270\u0027) \u003d\u003d -1  "}],"source_content_type":"text/x-yaml","patch_set":1,"id":"fa1b9901_94ced5b2","line":29,"updated":"2015-08-19 09:20:57.000000000","message":"nit: whitespace","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"}],"playbooks/roles/haproxy_server/tasks/haproxy_openstack_services_config.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"fa1b9901_f404f1c0","updated":"2015-08-19 09:20:57.000000000","message":"It\u0027s better practice to ensure that the role is a reusable unit and to leave the implementation details to the playbook that consumes it. I would recommend that these tasks live in the playbook, not the role. The vars should also be outside the role.","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"#This could be shortened when Ansible 2 is out:"},{"line_number":4,"context_line":"# - include_vars: \u003cvar file with the full list of variables\u003e"},{"line_number":5,"context_line":"# - include: haproxy_service_config.yml haproxy_service_configs\u003d\"{{item}}\""},{"line_number":6,"context_line":"#   when: \u003ccondition based on item\u003e"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"fa1b9901_af006202","line":3,"updated":"2015-08-19 09:20:57.000000000","message":"Can this not be done now with a with_subitems loop perhaps? I\u0027m thinking perhaps something like using a variable that has the list of services you have enabled (this list can then be overridden if you want to change these), then the vars files containing each service\u0027s configuration as you have it now. I do like the use of the groups though, but I find myself wondering how I would be able to \u0027drop in\u0027 a new service if I was adding other containers to the deployment (using env.d) and wanted to use the same haproxy.","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"}],"playbooks/roles/haproxy_server/tasks/haproxy_post_install.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  tags:"},{"line_number":24,"context_line":"    - haproxy-base-config"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"#- include: haproxy_service_config.yml"},{"line_number":27,"context_line":"- include: haproxy_openstack_services_config.yml"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"fa1b9901_541d9d0d","line":26,"updated":"2015-08-19 09:20:57.000000000","message":"no need to comment out the line - remove it if it\u0027s not to be used","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"}],"playbooks/vars/configs/haproxy_config.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"fd7a3cd2b275d7818f2c3b4ce440cb526ac061c0","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":13,"context_line":"# limitations under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"# This file is deprecated, default variables for haproxy are now in"},{"line_number":16,"context_line":"# roles/haproxy_server/ folder."},{"line_number":17,"context_line":"# If you want to add another type of service, you should do it there."},{"line_number":18,"context_line":"haproxy_service_configs:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"fa1b9901_94b815e7","line":15,"updated":"2015-08-19 09:20:57.000000000","message":"No need to do this - just remove the file if it\u0027s not used.","commit_id":"e40bee01ef132c48f1fe70a290fcd7b8af49448f"}]}
