zuul-jobs/test-playbooks/registry/buildset-registry-pre.yaml
James E. Blair 91ae8e62de Test buildset registry with k8s and docker
This adds a test job for the buildset registry with k8s with the
docker runtime.

Change-Id: I0ec1d3d5980424f85f5e7619b9dec96c8f0f70f1
2019-10-28 15:45:39 -07:00

40 lines
1.0 KiB
YAML

- hosts: all
tasks:
- name: Add project atomic PPA
become: true
apt_repository:
repo: ppa:projectatomic/ppa
- name: Install packages
become: true
package:
name:
- skopeo
state: present
# This happens in the pre-playbook of the
# opendev-buildset-registry job. Since we're testing these roles
# in opendev, and we're running a second buildset registry, we
# need to do the same here for it.
- name: Open the IPv4 port for the second buildset registry
become: true
iptables:
action: insert
chain: openstack-INPUT
destination_port: '9000'
jump: ACCEPT
match: tcp
ctstate: NEW
protocol: tcp
ip_version: ipv4
- name: Open the IPv6 port for the second buildset registry
become: true
iptables:
action: insert
chain: openstack-INPUT
destination_port: '9000'
jump: ACCEPT
match: tcp
ctstate: NEW
protocol: tcp
ip_version: ipv6