952b53089b
The idea is to factor out a role for deploying Nova related services to cells. Since all deployments use cells, this role can be used in both regular deployments which have just cell0 and cell1, and deployments with many cells. Partially Implements: blueprint support-nova-cells Change-Id: Ib1f36ec0a773c384f2c1eac1843782a3e766045a
27 lines
726 B
YAML
27 lines
726 B
YAML
---
|
|
- name: Install package python-os-xenapi
|
|
package:
|
|
name: python-os-xenapi
|
|
state: present
|
|
become: True
|
|
|
|
- name: Ensure XenAPI root path
|
|
file:
|
|
path: "{{ xenapi_facts_root }}"
|
|
state: directory
|
|
mode: "0770"
|
|
become: True
|
|
|
|
- name: Bootstrap XenAPI compute node
|
|
vars:
|
|
xenapi_facts_path: "{{ xenapi_facts_root + '/' + xenapi_facts_file }}"
|
|
command: xenapi_bootstrap -i {{ xenserver_himn_ip }} -u {{ xenserver_username }} -p {{ xenserver_password }} -f {{ xenapi_facts_path }}
|
|
become: True
|
|
|
|
- name: Fetching XenAPI facts file
|
|
fetch:
|
|
src: "{{ xenapi_facts_root + '/' + xenapi_facts_file }}"
|
|
dest: "{{ xenapi_facts_root + '/' + inventory_hostname + '/' }}"
|
|
flat: yes
|
|
become: True
|