Merge "Use {{ openstack_branch }} as version of kolla-ansible in ansible tests"
This commit is contained in:
commit
b98728f3d6
@ -15,7 +15,7 @@
|
||||
kolla_ansible_source_path: "{{ temp_path }}/src"
|
||||
kolla_ansible_ctl_install_type: "source"
|
||||
kolla_ansible_source_url: "http://github.com/openstack/kolla-ansible"
|
||||
kolla_ansible_source_version: "master"
|
||||
kolla_ansible_source_version: "{{ openstack_branch }}"
|
||||
kolla_ansible_venv: "{{ temp_path }}/venv"
|
||||
kolla_config_path: "{{ temp_path }}/etc/kolla"
|
||||
kolla_node_custom_config_path: "{{ temp_path }}/etc/kolla/config"
|
||||
|
@ -57,7 +57,7 @@
|
||||
kolla_ansible_source_path: "{{ temp_path }}/src"
|
||||
kolla_ansible_ctl_install_type: "source"
|
||||
kolla_ansible_source_url: "http://github.com/openstack/kolla-ansible"
|
||||
kolla_ansible_source_version: "master"
|
||||
kolla_ansible_source_version: "{{ openstack_branch }}"
|
||||
kolla_ansible_venv: "{{ temp_path }}/venv"
|
||||
kolla_ansible_vault_password: "fake-password"
|
||||
kolla_config_path: "{{ temp_path }}/etc/kolla"
|
||||
|
@ -15,7 +15,7 @@
|
||||
kolla_ansible_source_path: "{{ temp_path }}/src"
|
||||
kolla_ansible_ctl_install_type: "source"
|
||||
kolla_ansible_source_url: "http://github.com/openstack/kolla-ansible"
|
||||
kolla_ansible_source_version: "master"
|
||||
kolla_ansible_source_version: "{{ openstack_branch }}"
|
||||
kolla_ansible_venv: "{{ temp_path }}/venv"
|
||||
kolla_ansible_venv_extra_requirements:
|
||||
- "hvac"
|
||||
|
@ -7,7 +7,11 @@ set -e
|
||||
|
||||
failed=0
|
||||
for playbook in ansible/roles/*/tests/main.yml; do
|
||||
if ! ansible-playbook --connection=local $playbook $*; then
|
||||
# We declare extra variables to install the {{ openstack_branch }} version
|
||||
# of kolla-ansible. We should use {{ kolla_ansible_source_version }}, but
|
||||
# adding ansible/group_vars/all/kolla would in turn require other
|
||||
# extra-vars files (like pip) and may cause unintended side effects.
|
||||
if ! ansible-playbook --connection=local $playbook $* -e @ansible/group_vars/all/openstack; then
|
||||
failed=$((failed + 1))
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user