6e2bb04fae
Allows for easily running specific playbooks. Change-Id: Ia859238042eb286b61758acd8f99361c10dc0a05
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
---
|
|
- hosts: localhost
|
|
tags:
|
|
- host-setup
|
|
tasks:
|
|
- name: Load state from file
|
|
include_vars:
|
|
file: "{{ state_file_path }}"
|
|
name: tenks_state
|
|
|
|
- hosts: hypervisors
|
|
tags:
|
|
- host-setup
|
|
vars:
|
|
physnet_indices: >-
|
|
{{ hostvars.localhost.tenks_state[inventory_hostname].physnet_indices }}
|
|
tasks:
|
|
- include_tasks: hypervisor_setup.yml
|
|
|
|
- hosts: libvirt
|
|
tags:
|
|
- host-setup
|
|
tasks:
|
|
- block:
|
|
- name: Configure host for Libvirt
|
|
include_role:
|
|
name: stackhpc.libvirt-host
|
|
vars:
|
|
libvirt_host_pools:
|
|
- name: "{{ libvirt_pool_name }}"
|
|
type: "{{ libvirt_pool_type }}"
|
|
capacity: "{{ libvirt_pool_capacity }}"
|
|
path: "{{ libvirt_pool_path }}"
|
|
mode: "{{ libvirt_pool_mode }}"
|
|
owner: "{{ libvirt_pool_owner }}"
|
|
group: "{{ libvirt_pool_group }}"
|
|
libvirt_host_require_vt: "{{ libvirt_require_vt }}"
|
|
libvirt_host_uri: "{{ libvirt_local_uri }}"
|
|
libvirt_host_socket_dir: "{{ libvirt_custom_socket_path }}"
|
|
libvirt_host_pid_path: "{{ libvirt_custom_pid_path }}"
|
|
|
|
- name: Set up Virtual BMC daemon
|
|
include_role:
|
|
name: virtualbmc-daemon
|
|
vars:
|
|
vbmcd_virtualenv_path: "{{ virtualenv_path }}"
|
|
vbmcd_python_upper_constraints_url: >-
|
|
{{ python_upper_constraints_url }}
|
|
|
|
when: cmd == 'deploy'
|