system-config/playbooks/remote_puppet_git.yaml
Monty Taylor d3c8c1077b Switch to running gerrit via ansible+containers
This should be mostly a no-op - but we will need to do a shutdown
in emergency mode.

Tell the gerrit role to not run compose up when run as part of
remote_puppet_git.

Change-Id: Id45376c2697656a12afeacf317b6f26c85c08dad
2020-03-19 17:21:39 -05:00

34 lines
739 B
YAML

- hosts: "gitea:!disabled"
name: "Base: configure gitea"
serial: 1
roles:
- install-docker
- gitea
- hosts: "localhost:!disabled"
name: "Puppet-git: Collect the project-config ref"
strategy: free
connection: local
tasks:
- name: Clone project-config repo
git:
repo: https://opendev.org/openstack/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:
- gitea-git-repos
- hosts: "review:!disabled"
name: "Configure gerrit"
roles:
- install-docker
- role: gerrit
gerrit_run_compose_up: false
gerrit_run_init: false