Properly setup windmill-ops deployment

Seems we didn't propelry look at the logs of our jobs, otherwise we
would have seem this was completly missing.

Change-Id: Ied5116ebbcaf6db2d309cce0d7009b2c88521149
Depends-On: https://review.openstack.org/639907
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-02-27 22:19:02 -05:00
parent 16fcc5e9a3
commit a09d86b5d0
3 changed files with 21 additions and 14 deletions

View File

@ -6,6 +6,7 @@
run: tests/playbooks/run.yaml
post-run: tests/playbooks/post.yaml
required-projects:
- openstack/ansible-role-ansible
- openstack/ansible-role-diskimage-builder
- openstack/ansible-role-gearman
- openstack/ansible-role-logrotate

View File

@ -16,6 +16,12 @@
state: absent
when: ansible_os_family == 'RedHat'
- name: Install ansible configuration file
copy:
dest: "{{ ansible_user_dir }}/.ansible.cfg"
remote_src: true
src: "{{ ansible_user_dir }}/{{ windmill_src_dir }}/tests/ansible.cfg"
- name: Bootstrap bindep environment
args:
chdir: "{{ windmill_src_dir }}"
@ -23,17 +29,17 @@
- name: Bootstrap tox environment
args:
chdir: "{{ windmill_src_dir }}"
command: tox -evenv --notest
- name: Install ansible configuration file
copy:
dest: "{{ ansible_user_dir }}/.ansible.cfg"
remote_src: true
src: "{{ ansible_user_dir }}/{{ windmill_src_dir }}/tests/ansible.cfg"
chdir: "{{ item }}"
shell: tox -evenv --notest
with_items:
- ~/src/git.openstack.org/openstack/windmill-ops
- ~/src/git.openstack.org/openstack/windmill
- name: Install ansible roles via galaxy
args:
chdir: "{{ windmill_src_dir }}"
chdir: "{{ item }}"
executable: /bin/bash
shell: source .tox/venv/bin/activate; ./tools/install_roles.sh
shell: source .tox/venv/bin/activate; ./tools/install_roles.sh --force
with_items:
- ~/src/git.openstack.org/openstack/windmill-ops
- ~/src/git.openstack.org/openstack/windmill

View File

@ -4,19 +4,19 @@
- name: Setup SSH host keys for ansible
args:
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts tests/playbooks/bastion/site.yaml
shell: "tox -evenv -- ansible-playbook -i {{ ansible_user_dir }}/{{ windmill_src_dir }}/inventory/testing/hosts tests/playbooks/bastion/site.yaml"
- name: Bootstrap all nodes using windmill-ops
args:
chdir: "{{ zuul.projects['git.openstack.org/openstack/windmill-ops'].src_dir }}"
shell: "tox -evenv -- ansible-playbook -i {{ windmill_src_dir }}/inventory/testing/hosts playbooks/bootstrap/site.yaml"
shell: "tox -evenv -- ansible-playbook -v -f1 -i {{ ansible_user_dir }}/{{ windmill_src_dir }}/inventory/testing/hosts playbooks/bootstrap/site.yaml"
- name: Run ansible-playbook for site.yaml
args:
chdir: "{{ windmill_src_dir }}"
shell: "tox -evenv -- ansible-playbook -v -f1 -i inventory/testing/hosts playbooks/site.yaml -e @{{ windmill_extra_vars_file }}"
shell: "tox -evenv -- ansible-playbook -v -f1 -i {{ ansible_user_dir }}/{{ windmill_src_dir }}/inventory/testing/hosts playbooks/site.yaml -e @{{ windmill_extra_vars_file }}"
- name: Run ansible-playbook for prove.yaml
args:
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts playbooks/prove.yaml
shell: "tox -evenv -- ansible-playbook -i {{ ansible_user_dir }}/{{ windmill_src_dir }}/inventory/testing/hosts playbooks/prove.yaml"