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:
Paul Belanger 2017-10-04 10:29:24 -04:00
parent e19641c9f2
commit 22befecd1f
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
5 changed files with 47 additions and 14 deletions

41
.zuul.yaml Normal file
View 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

View File

@ -1,2 +0,0 @@
[defaults]
roles_path = ../..

View File

@ -1,2 +1 @@
[all]
localhost

View File

@ -12,16 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- hosts: localhost
- hosts: all
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
pre_tasks:
# Make sure OS does not have a stale package cache.
- name: Update apt cache.
become: yes
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
nodepool_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/nodepool"
nodepool_git_update: false
rolename: ansible-role-nodepool
roles:
- "{{ rolename }}"
@ -142,7 +137,7 @@
- name: Register nodepool_git_dest_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
- name: Assert nodepool_git_dest tests.

View File

@ -34,7 +34,7 @@ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[testenv:linters]
setenv =
ANSIBLE_CONFIG = tests/ansible.cfg
ANSIBLE_ROLES_PATH = ..
whitelist_externals = bash
commands =
# PEP8 Lint Check