db85f97e1d
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
68 lines
2.0 KiB
Django/Jinja
68 lines
2.0 KiB
Django/Jinja
# This playbook will clone repos and set up a directory
|
|
# structure for running the launcher-playbook to start
|
|
# the Zuul-based reproducer and run a job.
|
|
|
|
{% raw %}
|
|
- name: setup
|
|
hosts: localhost
|
|
tasks:
|
|
- name: Create directory structure
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- git
|
|
- roles
|
|
- library
|
|
- playbooks/tripleo-ci-reproducer
|
|
|
|
- name: Clone repos needed for reproducer
|
|
git:
|
|
repo: https://opendev.org/openstack/tripleo-quickstart.git
|
|
dest: "git/tripleo-quickstart"
|
|
version: 'FETCH_HEAD'
|
|
accept_hostkey: true
|
|
update: no
|
|
refspec: "{{ ooo_quickstart_refspec | default('HEAD') }}"
|
|
|
|
- name: Clone ansible role for reproducer
|
|
git:
|
|
repo: https://github.com/rdo-infra/ansible-role-tripleo-ci-reproducer.git
|
|
dest: "git/ansible-role-tripleo-ci-reproducer"
|
|
version: 'FETCH_HEAD'
|
|
accept_hostkey: true
|
|
update: no
|
|
refspec: "{{ reproducer_role_refspec | default('HEAD') }}"
|
|
|
|
- name: Copy roles and libraries for tripleo-quickstart
|
|
synchronize:
|
|
src: 'git/tripleo-quickstart/{{ item }}/'
|
|
dest: '{{ item }}/'
|
|
with_items:
|
|
- roles
|
|
- library
|
|
|
|
- name: Copy setup files from tripleo-quickstart
|
|
synchronize:
|
|
src: 'git/tripleo-quickstart/{{ item }}'
|
|
dest: "./{{ item }}"
|
|
with_items:
|
|
- install-deps.sh
|
|
|
|
- name: requirements from ansible-role-tripleo-ci-reproducer
|
|
synchronize:
|
|
src: 'git/ansible-role-tripleo-ci-reproducer/{{ item }}'
|
|
dest: './{{ item }}'
|
|
with_items:
|
|
- bindep.txt
|
|
- requirements.txt
|
|
|
|
- name: Copy ansible-role-tripleo-ci-reproducer roles and playbooks
|
|
synchronize:
|
|
src: 'git/ansible-role-tripleo-ci-reproducer{{ item.src_dir }}'
|
|
dest: '{{ item.dest_dir }}/'
|
|
with_items:
|
|
- { src_dir: '', dest_dir: 'roles' }
|
|
- { src_dir: '/playbooks/tripleo-ci-reproducer/', dest_dir: 'playbooks/tripleo-ci-reproducer' }
|
|
{% endraw %}
|