Fix testing vars and test-bifrost.yaml command line
Upon realizing that using the testing variable on the commandline was unreliable, I set it into the test-bifrost.yaml playbook to assume it by default and set the variable for the playbooks it is invoking.
This commit is contained in:
parent
21dd36b834
commit
afc8426f4b
|
@ -186,7 +186,7 @@ Once Ansible is present and available for use, a single test-bifrost playbook ca
|
||||||
|
|
||||||
Command::
|
Command::
|
||||||
|
|
||||||
ansible-playbook -i ./inventory/localhost test-bifrost.yaml -vvvv -e testing=true
|
ansible-playbook -i ./inventory/localhost test-bifrost.yaml -vvvv
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ ironic_db_password: aSecretPassword473z
|
||||||
mysql_password:
|
mysql_password:
|
||||||
# If testing is true, then the environment is setup for using libvirt
|
# If testing is true, then the environment is setup for using libvirt
|
||||||
# virtual machines for the hardware instead of real hardware.
|
# virtual machines for the hardware instead of real hardware.
|
||||||
testing: false
|
# testing: true
|
||||||
http_boot_folder: /httpboot
|
http_boot_folder: /httpboot
|
||||||
ssh_public_key_path: "{{ ansible_env.HOME }}/.ssh/id_rsa.pub"
|
ssh_public_key_path: "{{ ansible_env.HOME }}/.ssh/id_rsa.pub"
|
||||||
latest_os_ironic_url: https://raw.githubusercontent.com/juliakreger/ansible-modules-extras/features/new-openstack/cloud/os_ironic.py
|
latest_os_ironic_url: https://raw.githubusercontent.com/juliakreger/ansible-modules-extras/features/new-openstack/cloud/os_ironic.py
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Install testing packages"
|
- name: "Install testing packages"
|
||||||
apt: name={{ item }}
|
apt: name={{ item }} state=present
|
||||||
when: testing is defined and testing == true
|
|
||||||
with_items:
|
with_items:
|
||||||
- libvirt-bin
|
- libvirt-bin
|
||||||
- qemu-utils
|
- qemu-utils
|
||||||
|
@ -25,7 +24,9 @@
|
||||||
roles:
|
roles:
|
||||||
- role: ironic-install
|
- role: ironic-install
|
||||||
cleaning: false
|
cleaning: false
|
||||||
|
testing: true
|
||||||
- role: ironic-enroll
|
- role: ironic-enroll
|
||||||
|
testing: true
|
||||||
- role: ironic-deploy
|
- role: ironic-deploy
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
|
Loading…
Reference in New Issue