b4bc89dfff
This stops short of enrolling the nodes in Ironic, but provides some coverage of the earlier stages. Change-Id: I48a0bafaff1555caea0a7d216ac6f6a4f11c2b55 Depends-On: https://review.openstack.org/#/c/615544/ Depends-On: https://review.openstack.org/#/c/616510/ Depends-On: https://review.openstack.org/#/c/616501/
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
---
|
|
- hosts: all
|
|
pre_tasks:
|
|
- name: Include common variables
|
|
include_vars: common.yml
|
|
roles:
|
|
- role: tenks-diagnostics
|
|
tenks_diagnostics_phase: "pre"
|
|
tenks_diagnostics_log_dir: "{{ logs_dir }}"
|
|
- role: tenks-ci-prep
|
|
tasks:
|
|
- name: Ensure config directory exists
|
|
file:
|
|
path: "{{ config_dir }}"
|
|
state: "directory"
|
|
|
|
- name: Template tenks overrides
|
|
template:
|
|
src: tenks-overrides.yml.j2
|
|
dest: "{{ tenks_overrides_path }}"
|
|
|
|
- name: Create virtualenv for tenks
|
|
pip:
|
|
requirements: "{{ tenks_src_dir }}/requirements.txt"
|
|
virtualenv: "{{ tenks_venv }}"
|
|
|
|
- name: Install Ansible Galaxy dependencies
|
|
vars:
|
|
ansible_galaxy_bin: "{{ tenks_venv }}/bin/ansible-galaxy"
|
|
command: >-
|
|
{{ ansible_galaxy_bin }} install -r {{ tenks_src_dir }}/requirements.yml
|
|
-p {{ tenks_src_dir }}/ansible/roles
|
|
chdir: "{{ tenks_src_dir }}"
|
|
|
|
- name: Ensure network bridge for physnet1 exists
|
|
command: "{{ item }}"
|
|
become: true
|
|
with_items:
|
|
- "ip l add breth1 type bridge"
|
|
- "ip l set breth1 up"
|