Initial support for zuulv3
Now that zuulv3 is live, we can start having in repo jobs. Change-Id: I0463d440abac26b4592fce0e26960be33c0a4efc Depends-On: I7db3518f6dbd9c9315ebb5d4c40c6e18764b4e94 Depends-On: I3bff01ebac17c40988df60e7e4dd6e7fdc88a896 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
e19641c9f2
commit
22befecd1f
41
.zuul.yaml
Normal file
41
.zuul.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
- job:
|
||||||
|
name: ansible-role-nodepool
|
||||||
|
run: tests/test
|
||||||
|
required-projects:
|
||||||
|
- name: openstack-infra/nodepool
|
||||||
|
override-branch: feature/zuulv3
|
||||||
|
roles:
|
||||||
|
- zuul: openstack/ansible-role-nodepool
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: ansible-role-nodepool-centos-7
|
||||||
|
parent: ansible-role-nodepool
|
||||||
|
nodeset: centos-7
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: ansible-role-nodepool-fedora-26
|
||||||
|
parent: ansible-role-nodepool
|
||||||
|
nodeset: fedora-26
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: ansible-role-nodepool-ubuntu-xenial
|
||||||
|
parent: ansible-role-nodepool
|
||||||
|
nodeset: ubuntu-xenial
|
||||||
|
|
||||||
|
- project:
|
||||||
|
name: openstack/ansible-role-nodepool
|
||||||
|
templates:
|
||||||
|
- windmill-jobs-fedora-26
|
||||||
|
- windmill-jobs-xenial
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- ansible-role-nodepool-centos-7
|
||||||
|
- ansible-role-nodepool-fedora-26
|
||||||
|
- ansible-role-nodepool-ubuntu-xenial
|
||||||
|
- tox-linters
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- ansible-role-nodepool-centos-7
|
||||||
|
- ansible-role-nodepool-fedora-26
|
||||||
|
- ansible-role-nodepool-ubuntu-xenial
|
||||||
|
- tox-linters
|
@ -1,2 +0,0 @@
|
|||||||
[defaults]
|
|
||||||
roles_path = ../..
|
|
@ -1,2 +1 @@
|
|||||||
[all]
|
|
||||||
localhost
|
localhost
|
||||||
|
@ -12,16 +12,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: all
|
||||||
vars:
|
vars:
|
||||||
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
|
nodepool_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/nodepool"
|
||||||
pre_tasks:
|
nodepool_git_update: false
|
||||||
# Make sure OS does not have a stale package cache.
|
rolename: ansible-role-nodepool
|
||||||
- name: Update apt cache.
|
|
||||||
become: yes
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
when: ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- "{{ rolename }}"
|
- "{{ rolename }}"
|
||||||
@ -142,7 +137,7 @@
|
|||||||
|
|
||||||
- name: Register nodepool_git_dest_stat.
|
- name: Register nodepool_git_dest_stat.
|
||||||
stat:
|
stat:
|
||||||
path: /opt/ansible-role-nodepool/git/openstack-infra/nodepool
|
path: /home/zuul/src/git.openstack.org/openstack-infra/nodepool
|
||||||
register: nodepool_git_dest_stat
|
register: nodepool_git_dest_stat
|
||||||
|
|
||||||
- name: Assert nodepool_git_dest tests.
|
- name: Assert nodepool_git_dest tests.
|
||||||
|
2
tox.ini
2
tox.ini
@ -34,7 +34,7 @@ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
|||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
setenv =
|
setenv =
|
||||||
ANSIBLE_CONFIG = tests/ansible.cfg
|
ANSIBLE_ROLES_PATH = ..
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
# PEP8 Lint Check
|
# PEP8 Lint Check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user