Run zuul-preview
Change-Id: Ib72e2bd29d1061822e0c16c201445115a5e5c58f
This commit is contained in:
parent
d96623934c
commit
287eecd9d2
18
.zuul.yaml
18
.zuul.yaml
@ -533,6 +533,22 @@
|
|||||||
- testinfra/test_gitea.py
|
- testinfra/test_gitea.py
|
||||||
- testinfra/test_gitea_lb.py
|
- testinfra/test_gitea_lb.py
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: system-config-run-zuul-preview
|
||||||
|
parent: system-config-run
|
||||||
|
description: |
|
||||||
|
Run the playbook for the docker registry.
|
||||||
|
nodeset:
|
||||||
|
nodes:
|
||||||
|
- name: bridge.openstack.org
|
||||||
|
label: ubuntu-bionic
|
||||||
|
- name: zp01.opendev.org
|
||||||
|
label: ubuntu-bionic
|
||||||
|
files:
|
||||||
|
- .zuul.yaml
|
||||||
|
- playbooks/roles/zuul-preview/
|
||||||
|
- testinfra/test_zuul_preview.py
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: infra-prod-playbook
|
name: infra-prod-playbook
|
||||||
description: |
|
description: |
|
||||||
@ -583,6 +599,7 @@
|
|||||||
- system-config-run-docker
|
- system-config-run-docker
|
||||||
- system-config-run-docker-registry
|
- system-config-run-docker-registry
|
||||||
- system-config-run-gitea
|
- system-config-run-gitea
|
||||||
|
- system-config-run-zuul-preview
|
||||||
- system-config-build-image-jinja-init
|
- system-config-build-image-jinja-init
|
||||||
- system-config-build-image-gitea-init
|
- system-config-build-image-gitea-init
|
||||||
- system-config-build-image-gitea
|
- system-config-build-image-gitea
|
||||||
@ -603,6 +620,7 @@
|
|||||||
- system-config-run-docker
|
- system-config-run-docker
|
||||||
- system-config-run-docker-registry
|
- system-config-run-docker-registry
|
||||||
- system-config-run-gitea
|
- system-config-run-gitea
|
||||||
|
- system-config-run-zuul-preview
|
||||||
- system-config-upload-image-jinja-init
|
- system-config-upload-image-jinja-init
|
||||||
- system-config-upload-image-gitea-init
|
- system-config-upload-image-gitea-init
|
||||||
- system-config-upload-image-gitea
|
- system-config-upload-image-gitea
|
||||||
|
@ -253,5 +253,7 @@ groups:
|
|||||||
- ze[0-9]*.open*.org
|
- ze[0-9]*.open*.org
|
||||||
zuul-merger:
|
zuul-merger:
|
||||||
- zm[0-9]*.open*.org
|
- zm[0-9]*.open*.org
|
||||||
|
zuul-preview:
|
||||||
|
- zp[0-9]*.open*.org
|
||||||
zuul-scheduler:
|
zuul-scheduler:
|
||||||
- zuul[0-9]*.open*.org
|
- zuul[0-9]*.open*.org
|
||||||
|
@ -85,3 +85,9 @@
|
|||||||
roles:
|
roles:
|
||||||
- install-docker
|
- install-docker
|
||||||
- haproxy
|
- haproxy
|
||||||
|
|
||||||
|
- hosts: "zuul-preview:!disabled"
|
||||||
|
name: "Base: configure zuul-preview"
|
||||||
|
roles:
|
||||||
|
- install-docker
|
||||||
|
- zuul-preview
|
||||||
|
2
playbooks/roles/zuul-preview/README.rst
Normal file
2
playbooks/roles/zuul-preview/README.rst
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Install, configure, and run zuul-preview.
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# Version 2 is the latest that is supported by docker-compose in
|
||||||
|
# Ubuntu Xenial.
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
zuul-preview:
|
||||||
|
restart: always
|
||||||
|
image: zuul/zuul-preview:latest
|
||||||
|
network_mode: host
|
||||||
|
environment:
|
||||||
|
ZUUL_API_URL: https://zuul.opendev.org/
|
13
playbooks/roles/zuul-preview/tasks/main.yaml
Normal file
13
playbooks/roles/zuul-preview/tasks/main.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
- name: Synchronize docker-compose directory
|
||||||
|
synchronize:
|
||||||
|
src: zuul-preview-docker/
|
||||||
|
dest: /etc/zuul-preview-docker/
|
||||||
|
- name: Install docker-compose
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- docker-compose
|
||||||
|
state: present
|
||||||
|
- name: Run docker-compose up
|
||||||
|
shell:
|
||||||
|
cmd: docker-compose up -d
|
||||||
|
chdir: /etc/zuul-preview-docker/
|
21
testinfra/test_zuul_preview.py
Normal file
21
testinfra/test_zuul_preview.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 2018 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
testinfra_hosts = ['zp01.opendev.org']
|
||||||
|
|
||||||
|
|
||||||
|
def test_apache_listening(host):
|
||||||
|
apache = host.socket("tcp://0.0.0.0:80")
|
||||||
|
assert apache.is_listening
|
Loading…
Reference in New Issue
Block a user