diff options
Diffstat (limited to 'lib/ansible/playbooks/post_deploy_overcloud.yml')
-rw-r--r-- | lib/ansible/playbooks/post_deploy_overcloud.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/post_deploy_overcloud.yml b/lib/ansible/playbooks/post_deploy_overcloud.yml index 372aea49..08460a06 100644 --- a/lib/ansible/playbooks/post_deploy_overcloud.yml +++ b/lib/ansible/playbooks/post_deploy_overcloud.yml @@ -90,3 +90,14 @@ - name: save iptables command: service iptables save become: yes + - name: Modify nova metadata host to be IP + shell: > + crudini --set /var/lib/config-data/puppet-generated/neutron/etc/neutron/metadata_agent.ini + DEFAULT nova_metadata_host $(hiera -c /etc/puppet/hiera.yaml nova_metadata_vip) + become: yes + when: "'controller' in ansible_hostname" + - name: Restart metadata service + shell: "docker restart neutron_metadata_agent" + become: yes + when: + - "'controller' in ansible_hostname" |