8ad300927e
This is a first step toward making smaller playbooks which can be run by Zuul in CD. Zuul should be able to handle missing projects now, so remove it from the puppet_git playbook and into puppet. Make the base playbook be merely the base roles. Make service playbooks for each service. Remove the run-docker job because it's covered by service jobs. Stop testing that puppet is installed in testinfra. It's accidentally working due to the selection of non-puppeted hosts only being on bionic nodes and not installing puppet on bionic. Instead, we can now rely on actually *running* puppet when it's important, such as in the eavesdrop job. Also remove the installation of puppet on the nodes in the base job, since it's only useful to test that a synthetic test of installing puppet on nodes we don't use works. Don't run remote_puppet_git on gitea for now - it's too slow. A followup patch will rework gitea project creation to not take hours. Change-Id: Ibb78341c2c6be28005cea73542e829d8f7cfab08
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
- hosts: "localhost"
|
|
name: "Setup test project data"
|
|
vars:
|
|
projects:
|
|
- project: opendev/base-jobs
|
|
description: Zuul configuration common to all OpenDev tenants
|
|
tasks:
|
|
- name: Create test project-config directory
|
|
file:
|
|
path: "/opt/project-config/gerrit/"
|
|
state: directory
|
|
- name: Write test project configuration
|
|
copy:
|
|
dest: "/opt/project-config/gerrit/projects.yaml"
|
|
content: "{{ projects }}"
|
|
|
|
# TODO(mordred) This should be part of the service, once we refactor
|
|
# the project creation and are running remote_puppet_git.
|
|
- hosts: "gitea"
|
|
name: "Install and configure gitea"
|
|
roles:
|
|
- install-docker
|
|
- gitea
|
|
|
|
- hosts: "gitea"
|
|
name: "Create repos on gitea servers"
|
|
strategy: free
|
|
max_fail_percentage: 1
|
|
roles:
|
|
- role: gitea-git-repos
|
|
|
|
- hosts: "gitea"
|
|
tasks:
|
|
- name: Test project was created in gitea
|
|
uri:
|
|
url: "https://localhost:3000/opendev/base-jobs"
|
|
validate_certs: false
|
|
status_code: 200
|