)]}'
{"tasks/openstack_update_hosts_file.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"000ac9961cc1aa407f55d1debf58453723b493d2","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  stat:"},{"line_number":26,"context_line":"    path: /etc/hosts"},{"line_number":27,"context_line":"  register: stat_hosts"},{"line_number":28,"context_line":"  tags:"},{"line_number":29,"context_line":"    - openstack-host-hostfile"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"- name: Update hosts file"},{"line_number":32,"context_line":"  command: \"/usr/local/bin/openstack-host-hostfile-setup.sh\""}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7aa08908_900efbe2","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":29},"updated":"2016-06-08 18:38:18.000000000","message":"The tags should be removed now that https://review.openstack.org/325418 has merged.","commit_id":"94b44897eb87cb7de3c104000c5d72f208c23376"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"756f931eb67a589512426a5dabfa093656c2b7db","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  stat:"},{"line_number":26,"context_line":"    path: /etc/hosts"},{"line_number":27,"context_line":"  register: stat_hosts"},{"line_number":28,"context_line":"  tags:"},{"line_number":29,"context_line":"    - openstack-host-hostfile"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"- name: Update hosts file"},{"line_number":32,"context_line":"  command: \"/usr/local/bin/openstack-host-hostfile-setup.sh\""}],"source_content_type":"text/x-yaml","patch_set":9,"id":"3aaa91ec_71292a37","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":29},"in_reply_to":"7aa08908_900efbe2","updated":"2016-06-23 16:04:23.000000000","message":"Done","commit_id":"94b44897eb87cb7de3c104000c5d72f208c23376"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"000ac9961cc1aa407f55d1debf58453723b493d2","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  command: \"/usr/local/bin/openstack-host-hostfile-setup.sh\""},{"line_number":33,"context_line":"  register: update_hosts"},{"line_number":34,"context_line":"  changed_when: stat_hosts.stat.md5 | string !\u003d update_hosts.stdout | string"},{"line_number":35,"context_line":"  tags:"},{"line_number":36,"context_line":"    - openstack-host-hostfile"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7aa08908_7011cf03","line":36,"range":{"start_line":35,"start_character":0,"end_line":36,"end_character":29},"updated":"2016-06-08 18:38:18.000000000","message":"The tags should be removed now that https://review.openstack.org/325418 has merged.","commit_id":"94b44897eb87cb7de3c104000c5d72f208c23376"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"756f931eb67a589512426a5dabfa093656c2b7db","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  command: \"/usr/local/bin/openstack-host-hostfile-setup.sh\""},{"line_number":33,"context_line":"  register: update_hosts"},{"line_number":34,"context_line":"  changed_when: stat_hosts.stat.md5 | string !\u003d update_hosts.stdout | string"},{"line_number":35,"context_line":"  tags:"},{"line_number":36,"context_line":"    - openstack-host-hostfile"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"3aaa91ec_d1229e51","line":36,"range":{"start_line":35,"start_character":0,"end_line":36,"end_character":29},"in_reply_to":"7aa08908_7011cf03","updated":"2016-06-23 16:04:23.000000000","message":"Done","commit_id":"94b44897eb87cb7de3c104000c5d72f208c23376"}],"templates/openstack-host-hostfile-setup.sh.j2":[{"author":{"_account_id":16310,"name":"Flávio","email":"framalho@suse.com","username":"flaviosr"},"change_message_id":"a3bd02f1e6d23f35c49df3b8473574129918d703","unresolved":false,"context_lines":[{"line_number":11,"context_line":"    DOMAINNAME\u003d$5"},{"line_number":12,"context_line":"    ENTRYNUM\u003d\"$((grep -m1 -n ${IPADDR} /etc/hosts || echo $(cat /etc/hosts | wc -l)) | awk -F\u0027:\u0027 \u0027{print $1}\u0027)\""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"    sed -i \"/^${IPADDR}.*/d\" /etc/hosts"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    if [[ \"${ANSHOSTNAME}\" !\u003d \"${RFCHOSTNAME}\" ]] \u0026\u0026 [[ \"${RFCHOSTNAME}\" !\u003d \"${INVHOSTNAME}\" ]]; then"},{"line_number":17,"context_line":"        sed -i -e \"${ENTRYNUM}a${IPADDR} ${RFCHOSTNAME}.${DOMAINNAME} ${RFCHOSTNAME} ${INVHOSTNAME} ${ANSHOSTNAME}\\\\\" /etc/hosts"}],"source_content_type":"text/x-jinja2","patch_set":5,"id":"9abb7d3a_bacd915f","line":14,"range":{"start_line":14,"start_character":23,"end_line":14,"end_character":25},"updated":"2016-06-02 17:37:55.000000000","message":"Maybe add a space here, before the dot, or it can delete other lines containing part of the expression. \nFor example:\n \"sed -i \u0027/^192.168.10.1.*/d\u0027 /etc/hosts\" may delete\n \"192.168.10.110 infra3_nova...\"","commit_id":"1086dc9f1f9bdc2825955534e4da08bd5e15a1fb"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"793a4e384290107029496f94de2c4e6ef6c25b41","unresolved":false,"context_lines":[{"line_number":11,"context_line":"    DOMAINNAME\u003d$5"},{"line_number":12,"context_line":"    ENTRYNUM\u003d\"$((grep -m1 -n ${IPADDR} /etc/hosts || echo $(cat /etc/hosts | wc -l)) | awk -F\u0027:\u0027 \u0027{print $1}\u0027)\""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"    sed -i \"/^${IPADDR}.*/d\" /etc/hosts"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    if [[ \"${ANSHOSTNAME}\" !\u003d \"${RFCHOSTNAME}\" ]] \u0026\u0026 [[ \"${RFCHOSTNAME}\" !\u003d \"${INVHOSTNAME}\" ]]; then"},{"line_number":17,"context_line":"        sed -i -e \"${ENTRYNUM}a${IPADDR} ${RFCHOSTNAME}.${DOMAINNAME} ${RFCHOSTNAME} ${INVHOSTNAME} ${ANSHOSTNAME}\\\\\" /etc/hosts"}],"source_content_type":"text/x-jinja2","patch_set":5,"id":"9abb7d3a_97ca236d","line":14,"range":{"start_line":14,"start_character":23,"end_line":14,"end_character":25},"in_reply_to":"9abb7d3a_bacd915f","updated":"2016-06-02 18:54:17.000000000","message":"Done - I\u0027ve added a boundary it stead of \".*\" like so: \n  sed -i \"/^${IPADDR}\\b/d\" /etc/hosts","commit_id":"1086dc9f1f9bdc2825955534e4da08bd5e15a1fb"}],"tests/test.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"6ec037664032bc20f0c1e4313e4289205ec779ca","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        path: \"{{ ansible_env.HOME}}/.ssh\""},{"line_number":64,"context_line":"      register: ssh_dir"},{"line_number":65,"context_line":"    - name:"},{"line_number":66,"context_line":"      command: \"hostname -d\""},{"line_number":67,"context_line":"      register: domain_name"},{"line_number":68,"context_line":"    - name: Check role functions"},{"line_number":69,"context_line":"      assert:"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"7aa08908_d0752364","line":66,"range":{"start_line":66,"start_character":16,"end_line":66,"end_character":27},"updated":"2016-06-08 18:37:36.000000000","message":"This definitely does not produce the desired output, but I\u0027m not sure if we\u0027re missing the implementation of the right configuration or whether we should be doing something else to detect whether we\u0027ve set the hostname correctly.","commit_id":"94b44897eb87cb7de3c104000c5d72f208c23376"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"756f931eb67a589512426a5dabfa093656c2b7db","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        path: \"{{ ansible_env.HOME}}/.ssh\""},{"line_number":64,"context_line":"      register: ssh_dir"},{"line_number":65,"context_line":"    - name:"},{"line_number":66,"context_line":"      command: \"hostname -d\""},{"line_number":67,"context_line":"      register: domain_name"},{"line_number":68,"context_line":"    - name: Check role functions"},{"line_number":69,"context_line":"      assert:"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"3aaa91ec_719c8a5d","line":66,"range":{"start_line":66,"start_character":16,"end_line":66,"end_character":27},"in_reply_to":"7aa08908_d0752364","updated":"2016-06-23 16:04:23.000000000","message":"This is working as designed. The hostname -d command should have a stdout of the domain name, in this test case, \"openstack.local\".","commit_id":"94b44897eb87cb7de3c104000c5d72f208c23376"}]}
