Merge "XenAPI: Support compute node bootstrap"
This commit is contained in:
commit
01708a0d48
@ -731,3 +731,5 @@ opendaylight_allowed_network_types: '"flat", "vlan", "vxlan"'
|
|||||||
xenserver_himn_ip: "169.254.0.1"
|
xenserver_himn_ip: "169.254.0.1"
|
||||||
xenserver_username: "root"
|
xenserver_username: "root"
|
||||||
xenserver_connect_protocol: "https"
|
xenserver_connect_protocol: "https"
|
||||||
|
# File used to save XenAPI's facts variables formatted as json.
|
||||||
|
xenapi_facts_file: "/etc/kolla/xenapi.json"
|
||||||
|
@ -45,3 +45,8 @@
|
|||||||
|
|
||||||
- include: bootstrap_service.yml
|
- include: bootstrap_service.yml
|
||||||
when: database.changed
|
when: database.changed
|
||||||
|
|
||||||
|
- include: bootstrap_xenapi.yml
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups['compute']
|
||||||
|
- nova_compute_virt_type == "xenapi"
|
||||||
|
9
ansible/roles/nova/tasks/bootstrap_xenapi.yml
Normal file
9
ansible/roles/nova/tasks/bootstrap_xenapi.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
- name: Install package python-os-xenapi
|
||||||
|
package:
|
||||||
|
name: python-os-xenapi
|
||||||
|
state: present
|
||||||
|
become: True
|
||||||
|
|
||||||
|
- name: Bootstrap XenAPI compute node
|
||||||
|
command: xenapi_bootstrap -i {{ xenserver_himn_ip }} -u {{ xenserver_username }} -p {{ xenserver_password }} -f {{ xenapi_facts_file }}
|
||||||
|
become: True
|
Loading…
Reference in New Issue
Block a user