Update Kolla inventory with seed IP address after provisioning
This commit is contained in:
parent
55c330bb4c
commit
6e6a554f43
@ -94,7 +94,6 @@
|
||||
become: "{{ item.become | bool }}"
|
||||
with_items:
|
||||
- { path: "{{ kayobe_config_path }}/inventory/group_vars/seed", become: False }
|
||||
- { path: "{{ kolla_config_path }}/inventory/group_vars/seed", become: True }
|
||||
|
||||
# Generate inventory group variable files for the seed VM. Note that this
|
||||
# host will not be accessible to this instance of Ansible - another process
|
||||
@ -112,7 +111,6 @@
|
||||
become: "{{ item.become | bool }}"
|
||||
with_items:
|
||||
- { path: "{{ kayobe_config_path }}/inventory/group_vars/seed/ansible-host", become: False }
|
||||
- { path: "{{ kolla_config_path }}/inventory/group_vars/seed/ansible-host", become: True }
|
||||
|
||||
- name: Wait for SSH access to the seed VM
|
||||
local_action:
|
||||
|
@ -127,6 +127,9 @@ class SeedVMProvision(KollaAnsibleMixin, KayobeAnsibleMixin, Command):
|
||||
def take_action(self, parsed_args):
|
||||
self.app.LOG.debug("Provisioning seed VM")
|
||||
ansible.run_playbook(parsed_args, "ansible/seed-vm.yml")
|
||||
# Now populate the Kolla Ansible inventory.
|
||||
ansible.run_playbook(parsed_args, "ansible/kolla-ansible.yml",
|
||||
tags="config")
|
||||
|
||||
|
||||
class SeedHostConfigure(KollaAnsibleMixin, KayobeAnsibleMixin, Command):
|
||||
|
Loading…
Reference in New Issue
Block a user