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
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
- hosts: "gitea:!disabled"
|
|
name: "Base: configure gitea"
|
|
roles:
|
|
- install-docker
|
|
- gitea
|
|
|
|
- hosts: "review:!disabled"
|
|
name: "Base: install and configure puppet on puppet hosts"
|
|
roles:
|
|
- puppet-install
|
|
- disable-puppet-agent
|
|
|
|
- hosts: "localhost:!disabled"
|
|
name: "Puppet-git: Collect the project-config ref"
|
|
strategy: free
|
|
connection: local
|
|
tasks:
|
|
- name: Clone project-config repo
|
|
git:
|
|
repo: https://git.openstack.org/openstack-infra/project-config
|
|
dest: /opt/project-config
|
|
force: yes
|
|
register: gitinfo
|
|
|
|
- hosts: "gitea:!disabled"
|
|
name: "Create repos on gitea servers"
|
|
strategy: free
|
|
max_fail_percentage: 1
|
|
roles:
|
|
- role: gitea-git-repos
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
|
|
- hosts: "review:!disabled"
|
|
name: "Puppet-git: Run puppet on the Gerrit server"
|
|
strategy: free
|
|
gather_facts: true
|
|
roles:
|
|
- role: puppet
|
|
facts:
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
puppet_timeout: 60m
|