Use host_vars for wheel builds
No need to use magic names since we now have host_vars, instead set wheel_python explicitly. Remove TODO comment. Change-Id: I5051a32d843b106b013b94d57fd24b63896b741a
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Select python version of build
|
|
||||||
set_fact:
|
|
||||||
wheel_python: "python{{ inventory_hostname[-1] }}"
|
|
||||||
|
|
||||||
- name: Ensure build logs directory exists
|
- name: Ensure build logs directory exists
|
||||||
file:
|
file:
|
||||||
path: "{{ zuul.executor.log_root }}/{{ wheel_python }}"
|
path: "{{ zuul.executor.log_root }}/{{ wheel_python }}"
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
- name: Select python version to build
|
|
||||||
set_fact:
|
|
||||||
wheel_python: "python{{ inventory_hostname[-1] }}"
|
|
||||||
|
|
||||||
- name: Ensure wheel dir exists
|
- name: Ensure wheel dir exists
|
||||||
file:
|
file:
|
||||||
group: zuul
|
group: zuul
|
||||||
|
|||||||
@@ -958,13 +958,12 @@
|
|||||||
description: |
|
description: |
|
||||||
Build CentOS 7 wheels for OpenStaci CI mirrors.
|
Build CentOS 7 wheels for OpenStaci CI mirrors.
|
||||||
nodeset:
|
nodeset:
|
||||||
# NOTE: The python2 and python3 suffix are important, they select the
|
|
||||||
# version of python to build in each job. (we pull the last character of
|
|
||||||
# the inventory_hostname)
|
|
||||||
# TODO(mordred): Replace the suffix with host_vars once we have them.
|
|
||||||
nodes:
|
nodes:
|
||||||
- name: wheel-mirror-centos-7-python2
|
- name: wheel-mirror-centos-7-python2
|
||||||
label: centos-7
|
label: centos-7
|
||||||
|
host_vars:
|
||||||
|
wheel-mirror-ubuntu-centos-7-python2:
|
||||||
|
wheel_python: python2
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-wheel-mirror-centos-7
|
name: publish-wheel-mirror-centos-7
|
||||||
@@ -983,15 +982,16 @@
|
|||||||
description: |
|
description: |
|
||||||
Build Ubuntu Trusty wheels for OpenStaci CI mirrors.
|
Build Ubuntu Trusty wheels for OpenStaci CI mirrors.
|
||||||
nodeset:
|
nodeset:
|
||||||
# NOTE: The python2 and python3 suffix are important, they select the
|
|
||||||
# version of python to build in each job. (we pull the last character of
|
|
||||||
# the inventory_hostname)
|
|
||||||
# TODO(mordred): Replace the suffix with host_vars once we have them.
|
|
||||||
nodes:
|
nodes:
|
||||||
- name: wheel-mirror-ubuntu-trusty-python2
|
- name: wheel-mirror-ubuntu-trusty-python2
|
||||||
label: ubuntu-trusty
|
label: ubuntu-trusty
|
||||||
- name: wheel-mirror-ubuntu-trusty-python3
|
- name: wheel-mirror-ubuntu-trusty-python3
|
||||||
label: ubuntu-trusty
|
label: ubuntu-trusty
|
||||||
|
host_vars:
|
||||||
|
wheel-mirror-ubuntu-trusty-python2:
|
||||||
|
wheel_python: python2
|
||||||
|
wheel-mirror-ubuntu-trusty-python3:
|
||||||
|
wheel_python: python3
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-wheel-mirror-ubuntu-trusty
|
name: publish-wheel-mirror-ubuntu-trusty
|
||||||
@@ -1010,15 +1010,16 @@
|
|||||||
description: |
|
description: |
|
||||||
Build Ubuntu Xenial wheels for OpenStaci CI mirrors.
|
Build Ubuntu Xenial wheels for OpenStaci CI mirrors.
|
||||||
nodeset:
|
nodeset:
|
||||||
# NOTE: The python2 and python3 suffix are important, they select the
|
|
||||||
# version of python to build in each job. (we pull the last character of
|
|
||||||
# the inventory_hostname)
|
|
||||||
# TODO(mordred): Replace the suffix with host_vars once we have them.
|
|
||||||
nodes:
|
nodes:
|
||||||
- name: wheel-mirror-ubuntu-xenial-python2
|
- name: wheel-mirror-ubuntu-xenial-python2
|
||||||
label: ubuntu-xenial
|
label: ubuntu-xenial
|
||||||
- name: wheel-mirror-ubuntu-xenial-python3
|
- name: wheel-mirror-ubuntu-xenial-python3
|
||||||
label: ubuntu-xenial
|
label: ubuntu-xenial
|
||||||
|
host_vars:
|
||||||
|
wheel-mirror-ubuntu-xenial-python2:
|
||||||
|
wheel_python: python2
|
||||||
|
wheel-mirror-ubuntu-xenial-python3:
|
||||||
|
wheel_python: python3
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-wheel-mirror-ubuntu-xenial
|
name: publish-wheel-mirror-ubuntu-xenial
|
||||||
|
|||||||
Reference in New Issue
Block a user