)]}'
{"tasks/horizon_post_install.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"a43a855846435d15c0bbf331a5e735bd2de49f15","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    config_overrides: \"{{ item.config_overrides }}\""},{"line_number":59,"context_line":"    config_type: \"{{ item.config_type }}\""},{"line_number":60,"context_line":"  with_items:"},{"line_number":61,"context_line":"    - src: \"policies/ceilometer_policy.json.j2\""},{"line_number":62,"context_line":"      dest: \"{{ horizon_policy_files_dir }}/ceilometer_policy.json\""},{"line_number":63,"context_line":"      config_overrides: \"{{ ceilometer_policy_overrides }}\""},{"line_number":64,"context_line":"      config_type: \"json\""}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7aa08908_88381da1","line":61,"updated":"2016-06-16 14:27:26.000000000","message":"I\u0027m not a fan of carrying the policy files in multiple places. I\u0027d prefer not to carry them at all, which is why I registered https://blueprints.launchpad.net/openstack-ansible/+spec/static-file-distribution and would like to see someone pick up that work ASAP.\n\nIf this is implemented, I would rather see it follow on from the above blueprint\u0027s work or at least the portion of it which deals with the policy files.","commit_id":"802544e23cbe8ebd729cc1810db13a1349053bb6"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"7179d0e064c68e96bde609706b6c9217542abc3a","unresolved":false,"context_lines":[{"line_number":57,"context_line":"  run_once: yes"},{"line_number":58,"context_line":"  delegate_to: \"{{ item.delegate_host }}\""},{"line_number":59,"context_line":"  with_items:"},{"line_number":60,"context_line":"    - { delegate_host: \"{{ groups[\u0027ceilometer_all\u0027][0] }}\", src: \"/etc/ceilometer/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/ceilometer_policy.json\" }"},{"line_number":61,"context_line":"    - { delegate_host: \"{{ groups[\u0027cinder_all\u0027][0] }}\", src: \"/etc/cinder/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/cinder_policy.json\" }"},{"line_number":62,"context_line":"    - { delegate_host: \"{{ groups[\u0027glance_all\u0027][0] }}\", src: \"/etc/glance/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/glance_policy.json\" }"},{"line_number":63,"context_line":"    - { delegate_host: \"{{ groups[\u0027heat_all\u0027][0] }}\", src: \"/etc/heat/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/heat_policy.json\" }"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"7aa08908_c441423b","line":60,"range":{"start_line":60,"start_character":24,"end_line":60,"end_character":57},"updated":"2016-06-17 09:41:03.000000000","message":"As the horizon role won\u0027t know about this group without the integrated repo being used, this will need to be defaulted to an empty list so I think it\u0027ll need to be:\n\n  {{ groups[\u0027ceilometer_all\u0027][0] | default([]) }}","commit_id":"99acfa2f57df2b4e58b98e1b9fae47174ba109ab"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"bd3eee1c0cdcab57b39e6643eaa73038674a4141","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    flat: yes"},{"line_number":56,"context_line":"    fail_on_missing: yes"},{"line_number":57,"context_line":"  run_once: yes"},{"line_number":58,"context_line":"  delegate_to: \"{{ item.delegate_host[0] }}\""},{"line_number":59,"context_line":"  when: item.delegate_host !\u003d \u0027\u0027"},{"line_number":60,"context_line":"  with_items:"},{"line_number":61,"context_line":"    - { delegate_host: \"{{ groups[\u0027ceilometer_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/ceilometer/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/ceilometer_policy.json\" }"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a9d85d2_fcea42ab","line":58,"range":{"start_line":58,"start_character":24,"end_line":58,"end_character":40},"updated":"2016-06-21 12:05:47.000000000","message":"Why not make the value [0] in the with_items loop instead of assigning the whole group list into the delegate_host var. In other words make the var only contain one host or nothing instead of a list.","commit_id":"e72feb919b2ec59548021c5cd688640b8ba12570"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"bd3eee1c0cdcab57b39e6643eaa73038674a4141","unresolved":false,"context_lines":[{"line_number":58,"context_line":"  delegate_to: \"{{ item.delegate_host[0] }}\""},{"line_number":59,"context_line":"  when: item.delegate_host !\u003d \u0027\u0027"},{"line_number":60,"context_line":"  with_items:"},{"line_number":61,"context_line":"    - { delegate_host: \"{{ groups[\u0027ceilometer_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/ceilometer/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/ceilometer_policy.json\" }"},{"line_number":62,"context_line":"    - { delegate_host: \"{{ groups[\u0027cinder_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/cinder/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/cinder_policy.json\" }"},{"line_number":63,"context_line":"    - { delegate_host: \"{{ groups[\u0027glance_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/glance/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/glance_policy.json\" }"},{"line_number":64,"context_line":"    - { delegate_host: \"{{ groups[\u0027heat_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/heat/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/heat_policy.json\" }"},{"line_number":65,"context_line":"    - { delegate_host: \"{{ groups[\u0027keystone_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/keystone/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/keystone_policy.json\" }"},{"line_number":66,"context_line":"    - { delegate_host: \"{{ groups[\u0027neutron_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/neutron/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/neutron_policy.json\" }"},{"line_number":67,"context_line":"    - { delegate_host: \"{{ groups[\u0027nova_all\u0027]|default(\u0027\u0027) }}\", src: \"/etc/nova/policy.json\", dest: \"{{ horizon_tmp_policy_files_dir }}/nova_policy.json\" }"},{"line_number":68,"context_line":"  tags:"},{"line_number":69,"context_line":"    - horizon-configs"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a9d85d2_3c220a02","line":67,"range":{"start_line":61,"start_character":0,"end_line":67,"end_character":154},"updated":"2016-06-21 12:05:47.000000000","message":"It\u0027s not very sustainable to do it this way because it requires a code change in this role to support any and all services that are deployed. If possible why not make the with_items list be something passed into the role and have no default value. The default value can then be set in group_vars where we know more about the environment.","commit_id":"e72feb919b2ec59548021c5cd688640b8ba12570"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"bd3eee1c0cdcab57b39e6643eaa73038674a4141","unresolved":false,"context_lines":[{"line_number":76,"context_line":"  tags:"},{"line_number":77,"context_line":"    - horizon-configs"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"- name: Copy policy.json files from tmp directory to horizon"},{"line_number":80,"context_line":"  copy:"},{"line_number":81,"context_line":"    src: \"{{ item.src }}\""},{"line_number":82,"context_line":"    dest: \"{{ item.dest }}\""},{"line_number":83,"context_line":"  with_items:"},{"line_number":84,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/ceilometer_policy.json\", dest: \"{{ horizon_policy_files_dir }}/ceilometer_policy.json\" }"},{"line_number":85,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/cinder_policy.json\", dest: \"{{ horizon_policy_files_dir }}/cinder_policy.json\" }"},{"line_number":86,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/glance_policy.json\", dest: \"{{ horizon_policy_files_dir }}/glance_policy.json\" }"},{"line_number":87,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/heat_policy.json\", dest: \"{{ horizon_policy_files_dir }}/heat_policy.json\" }"},{"line_number":88,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/keystone_policy.json\", dest: \"{{ horizon_policy_files_dir }}/keystone_policy.json\" }"},{"line_number":89,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/neutron_policy.json\", dest: \"{{ horizon_policy_files_dir }}/neutron_policy.json\" }"},{"line_number":90,"context_line":"    - { src: \"{{ horizon_tmp_policy_files_dir }}/nova_policy.json\", dest: \"{{ horizon_policy_files_dir }}/nova_policy.json\" }"},{"line_number":91,"context_line":"  notify: Restart apache2"},{"line_number":92,"context_line":"  tags:"},{"line_number":93,"context_line":"    - horizon-configs"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"- name: Uploading horizon custom files"},{"line_number":96,"context_line":"  copy:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5a9d85d2_dc8f8621","line":93,"range":{"start_line":79,"start_character":0,"end_line":93,"end_character":21},"updated":"2016-06-21 12:05:47.000000000","message":"Any one of these files may not exist, so you\u0027ll have to build in a way to protect against that. Maybe check the local file store for a list of the files in the tmp directory, then execute against the list of files found?","commit_id":"e72feb919b2ec59548021c5cd688640b8ba12570"}]}
