Clean up the ansible playbooks
Change-Id: I7514368c591fb7cb445207a96c966275896ba4d5
This commit is contained in:
parent
d768c3becd
commit
396eca61bc
@ -9,6 +9,9 @@
|
||||
- openstack/requirements
|
||||
- openstack/ironic-python-agent
|
||||
- openstack/ironic-python-agent-builder
|
||||
vars:
|
||||
ipa_raw_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_RAW'
|
||||
ipa_tar_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_TAR'
|
||||
|
||||
- job:
|
||||
name: ironic-python-agent-build-image-tinyipa
|
||||
@ -44,6 +47,9 @@
|
||||
- ^test-requirements.txt$
|
||||
- ^tools/.*$
|
||||
- ^tox.ini$
|
||||
vars:
|
||||
ipa_raw_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_RAW'
|
||||
ipa_tar_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_TAR'
|
||||
|
||||
- job:
|
||||
name: ironic-python-agent-check-image-tinyipa
|
||||
|
@ -1,9 +1,5 @@
|
||||
- hosts: all
|
||||
|
||||
vars:
|
||||
ipa_raw_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_RAW'
|
||||
ipa_tar_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_TAR'
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Ensure artifacts directory exists
|
||||
@ -12,7 +8,7 @@
|
||||
state: directory
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node
|
||||
- name: Copy files from {{ ipa_raw_dir }} on node
|
||||
synchronize:
|
||||
src: '{{ ipa_raw_dir }}/'
|
||||
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/files/'
|
||||
@ -23,7 +19,7 @@
|
||||
- --include=/*
|
||||
- --prune-empty-dirs
|
||||
|
||||
- name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node
|
||||
- name: Copy files from {{ ipa_tar_dir }} on node
|
||||
synchronize:
|
||||
src: '{{ ipa_tar_dir }}/'
|
||||
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/'
|
||||
|
@ -1,9 +1,5 @@
|
||||
- hosts: all
|
||||
|
||||
vars:
|
||||
ipa_raw_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_RAW'
|
||||
ipa_tar_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_TAR'
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Create a target directory for raw images
|
||||
@ -16,10 +12,5 @@
|
||||
path: '{{ ipa_tar_dir }}'
|
||||
state: directory
|
||||
|
||||
- import_role:
|
||||
name: ipa-build-tinyipa-image
|
||||
when: image_type == 'tinyipa'
|
||||
|
||||
- import_role:
|
||||
name: ipa-build-dib-image
|
||||
when: image_type == 'dib'
|
||||
- include_role:
|
||||
name: ipa-build-{{ image_type }}-image
|
||||
|
@ -4,13 +4,8 @@
|
||||
vars:
|
||||
bindep_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/diskimage-builder'].src_dir }}"
|
||||
|
||||
- name: Install requirements for ironic-python-agent-builder
|
||||
pip:
|
||||
requirements: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/ironic-python-agent-builder'].src_dir }}/requirements.txt"
|
||||
extra_args: -c "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
|
||||
become: true
|
||||
|
||||
- name: Install ironic-python-agent-builder
|
||||
pip:
|
||||
name: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/ironic-python-agent-builder'].src_dir }}"
|
||||
extra_args: -c "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
|
||||
become: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user