Initial commit for zuulv3 jobs
Change-Id: I82a41c334032f4a15a363cf14063326f0145041f Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
0d6f61e697
commit
42b729d2d4
34
.zuul.yaml
Normal file
34
.zuul.yaml
Normal file
@ -0,0 +1,34 @@
|
||||
- job:
|
||||
name: ansible-role-zuul
|
||||
run: tests/test.yaml
|
||||
required-projects:
|
||||
- name: openstack-infra/zuul
|
||||
override-branch: feature/zuulv3
|
||||
roles:
|
||||
- zuul: openstack/ansible-role-zuul
|
||||
|
||||
- job:
|
||||
name: ansible-role-zuul-fedora-26
|
||||
parent: ansible-role-zuul
|
||||
nodeset: fedora-26
|
||||
|
||||
- job:
|
||||
name: ansible-role-zuul-ubuntu-xenial
|
||||
parent: ansible-role-zuul
|
||||
nodeset: ubuntu-xenial
|
||||
|
||||
- project:
|
||||
name: openstack/ansible-role-zuul
|
||||
templates:
|
||||
- windmill-jobs-fedora-26
|
||||
- windmill-jobs-xenial
|
||||
check:
|
||||
jobs:
|
||||
- ansible-role-zuul-fedora-26
|
||||
- ansible-role-zuul-ubuntu-xenial
|
||||
- tox-linters
|
||||
gate:
|
||||
jobs:
|
||||
- ansible-role-zuul-fedora-26
|
||||
- ansible-role-zuul-ubuntu-xenial
|
||||
- tox-linters
|
@ -16,15 +16,16 @@ server = 127.0.0.1
|
||||
sshkey = /var/lib/zuul/.ssh/id_rsa
|
||||
user = zuul
|
||||
|
||||
[zuul]
|
||||
[scheduler]
|
||||
layout_config = /etc/zuul/config/layout.yaml
|
||||
log_config = /etc/zuul/scheduler-logging.conf
|
||||
pidfile = /var/run/zuul-scheduler/zuul-scheduler.pid
|
||||
state_dir = /var/lib/zuul
|
||||
|
||||
[executor]
|
||||
finger_port = 17979
|
||||
log_config = /etc/zuul/executor-logging.conf
|
||||
workspace_root=/var/lib/zuul/workspace
|
||||
workspace_root = /var/lib/zuul/workspace
|
||||
|
||||
[merger]
|
||||
git_dir = /var/lib/zuul/git
|
||||
|
9
tests/templates/etc/systemd/system/override.conf.j2
Normal file
9
tests/templates/etc/systemd/system/override.conf.j2
Normal file
@ -0,0 +1,9 @@
|
||||
# This file is generated by Ansible
|
||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||
#
|
||||
[Service]
|
||||
{% if ansible_os_family == 'RedHat' %}
|
||||
Environment="PREFIX=/usr"
|
||||
{% endif %}
|
||||
Group={{ zuul_user_group }}
|
||||
User={{ zuul_user_name }}
|
@ -12,17 +12,17 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- hosts: test
|
||||
- hosts: all
|
||||
vars:
|
||||
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
|
||||
rolename: ansible-role-zuul
|
||||
zuul_file_zuul_executor_service_config_src: etc/systemd/system/override.conf.j2
|
||||
zuul_file_zuul_merger_service_config_src: etc/systemd/system/override.conf.j2
|
||||
zuul_file_zuul_scheduler_service_config_src: etc/systemd/system/override.conf.j2
|
||||
zuul_user_name: zuul-test
|
||||
zuul_user_group: zuul-test
|
||||
zuul_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/zuul"
|
||||
zuul_git_update: false
|
||||
zuul_pip_executable: pip3
|
||||
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'
|
||||
|
||||
roles:
|
||||
- "{{ rolename }}"
|
||||
@ -48,15 +48,15 @@
|
||||
- zuul_service_zuul_scheduler
|
||||
|
||||
- name: Ensure zuul_user_name is zuul.
|
||||
shell: /usr/bin/getent passwd zuul
|
||||
shell: /usr/bin/getent passwd zuul-test
|
||||
tags: skip_ansible_lint
|
||||
|
||||
- name: Ensure zuul_user_group is zuul.
|
||||
shell: /usr/bin/getent group zuul
|
||||
shell: /usr/bin/getent group zuul-test
|
||||
tags: skip_ansible_lint
|
||||
|
||||
- name: Register zuul_user_home_getent.
|
||||
shell: '/usr/bin/getent passwd zuul | cut -d: -f6'
|
||||
shell: '/usr/bin/getent passwd zuul-test | cut -d: -f6'
|
||||
register: zuul_user_home_getent
|
||||
tags: skip_ansible_lint
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
- name: Register zuul_git_dest_stat.
|
||||
stat:
|
||||
path: /opt/ansible-role-zuul/git/openstack-infra/zuul
|
||||
path: /home/zuul/src/git.openstack.org/openstack-infra/zuul
|
||||
register: zuul_git_dest_stat
|
||||
|
||||
- name: Assert zuul_git_dest tests.
|
||||
@ -97,8 +97,8 @@
|
||||
that:
|
||||
- zuul_layout_stat.stat.exists
|
||||
- zuul_layout_stat.stat.isdir
|
||||
- zuul_layout_stat.stat.pw_name == 'zuul'
|
||||
- zuul_layout_stat.stat.gr_name == 'zuul'
|
||||
- zuul_layout_stat.stat.pw_name == 'zuul-test'
|
||||
- zuul_layout_stat.stat.gr_name == 'zuul-test'
|
||||
- zuul_layout_stat.stat.mode == '0755'
|
||||
|
||||
- name: Register /etc/zuul/config/layout.yaml
|
||||
@ -111,8 +111,8 @@
|
||||
that:
|
||||
- zuul_layout_yaml_stat.stat.exists
|
||||
- zuul_layout_yaml_stat.stat.isreg
|
||||
- zuul_layout_yaml_stat.stat.pw_name == 'zuul'
|
||||
- zuul_layout_yaml_stat.stat.gr_name == 'zuul'
|
||||
- zuul_layout_yaml_stat.stat.pw_name == 'zuul-test'
|
||||
- zuul_layout_yaml_stat.stat.gr_name == 'zuul-test'
|
||||
|
||||
- name: Register /etc/zuul/zuul.conf
|
||||
stat:
|
||||
@ -124,8 +124,8 @@
|
||||
that:
|
||||
- zuul_conf_stat.stat.exists
|
||||
- zuul_conf_stat.stat.isreg
|
||||
- zuul_conf_stat.stat.pw_name == 'zuul'
|
||||
- zuul_conf_stat.stat.gr_name == 'zuul'
|
||||
- zuul_conf_stat.stat.pw_name == 'zuul-test'
|
||||
- zuul_conf_stat.stat.gr_name == 'zuul-test'
|
||||
|
||||
- name: Register /etc/systemd/system/zuul-executor.service.d/override.conf
|
||||
stat:
|
||||
|
Loading…
Reference in New Issue
Block a user