zuul-jobs/test-playbooks/registry/test-registry-pre.yaml
vass 33cd649941 Update registry test to use ensure-podman and ensure-docker
Change-Id: I5f1e774ea834f08f6e5602f936132b21ecf591a8
2020-04-07 04:53:04 +00:00

49 lines
1.4 KiB
YAML

# This happens in the pre-playbook of the opendev-buildset-registry
# job. Since we're testing these roles in opendev, we need to do the
# same here for the builder (and also the intermediate registry,
# though that obviously happens in configuration management rather
# than a job).
- hosts: builder:intermediate-registry
name: "Set up container system and iptables configuration for registry hosts"
tasks:
- name: Install container system
include_role:
name: "ensure-{{ container_command }}"
- name: Open the IPv4 port for the buildset registry
become: true
iptables:
action: insert
chain: openstack-INPUT
destination_port: '5000:5001'
jump: ACCEPT
match: tcp
ctstate: NEW
protocol: tcp
ip_version: ipv4
- name: Open the IPv6 port for the buildset registry
become: true
iptables:
action: insert
chain: openstack-INPUT
destination_port: '5000:5001'
jump: ACCEPT
match: tcp
ctstate: NEW
protocol: tcp
ip_version: ipv6
- hosts: executor
name: Set up a simulated executor
tasks:
- name: Add project atomic PPA
become: true
apt_repository:
repo: ppa:projectatomic/ppa
- name: Install packages
become: true
package:
name:
- socat
- skopeo
state: present