8638ac3e2a
This will be used to replace our current confgure_mirror.sh script that we today as a ready-script in nodepool. This only adds support for ubuntu today. As we move forward and configuration openstack-infra from JJB to ansible, we'll need to add more distros. Attach the role to the unittests base job for now. It should ultimately be attached to the base job, but adding it to the unittests job lets us test it more easily. Co-Authored-By: Monty Taylor <mordred@inaugust.com> Change-Id: I9bfa28c87390c09bb2c4cd0de6ce4c7890f8d81a Signed-off-by: Paul Belanger <pabelanger@redhat.com>
25 lines
1.0 KiB
YAML
25 lines
1.0 KiB
YAML
- hosts: all
|
|
# We're gathering facts here so that we can emit things in the debug-ansible
|
|
# role. We also need facts in bindep.
|
|
# Don't copy-pasta this. Zuul runs ansible with gathering = explicit
|
|
gather_facts: true
|
|
gather_subset:
|
|
- "!all"
|
|
roles:
|
|
- role: configure-mirrors
|
|
# TODO(mordred) When we have site-local variables, these should go there
|
|
mirror_host: "mirror.{{ nodepool.region | lower }}.{{ nodepool.provider | lower }}.openstack.org"
|
|
mirror_domain: openstack.org
|
|
- role: validate-host
|
|
# TODO(mordred) When we have site-local variables, these should go there
|
|
zuul_traceroute_host: git.openstack.org
|
|
zuul_image_manifest: /etc/dib-builddate.txt
|
|
- role: bindep
|
|
bindep_profile: test
|
|
bindep_dir: "{{ zuul_work_dir }}"
|
|
# TODO(mordred) When we have site-local variables, these should go there
|
|
bindep_command: /usr/bindep-env/bin/bindep
|
|
bindep_fallback: /usr/local/jenkins/common_data/bindep-fallback.txt
|
|
- test-setup
|
|
- revoke-sudo
|