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::
|
||||
|
||||
ansible-playbook -i ./inventory/localhost test-bifrost.yaml -vvvv -e testing=true
|
||||
ansible-playbook -i ./inventory/localhost test-bifrost.yaml -vvvv
|
||||
|
||||
Note:
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ ironic_db_password: aSecretPassword473z
|
|||
mysql_password:
|
||||
# If testing is true, then the environment is setup for using libvirt
|
||||
# virtual machines for the hardware instead of real hardware.
|
||||
testing: false
|
||||
# testing: true
|
||||
http_boot_folder: /httpboot
|
||||
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
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
gather_facts: no
|
||||
tasks:
|
||||
- name: "Install testing packages"
|
||||
apt: name={{ item }}
|
||||
when: testing is defined and testing == true
|
||||
apt: name={{ item }} state=present
|
||||
with_items:
|
||||
- libvirt-bin
|
||||
- qemu-utils
|
||||
|
@ -25,7 +24,9 @@
|
|||
roles:
|
||||
- role: ironic-install
|
||||
cleaning: false
|
||||
testing: true
|
||||
- role: ironic-enroll
|
||||
testing: true
|
||||
- role: ironic-deploy
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
|
|
Loading…
Reference in New Issue