
Add the gitea02.opendev.org server into the haproxy pools now that it's been seeded with current data. Switch the create repos task disable list from 02 to 03, and remove 03 from the Ansible inventory and comment it out in the haproxy pools in preparation for replacement. Change-Id: I4b51291311064c60d4bb2d90bec6e5cb90a54f3c
42 lines
1007 B
YAML
42 lines
1007 B
YAML
- hosts: "gitea:!disabled"
|
|
name: "Base: configure gitea"
|
|
serial: 1
|
|
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:!gitea03.opendev.org:!disabled"
|
|
name: "Create repos on gitea servers"
|
|
strategy: free
|
|
max_fail_percentage: 1
|
|
roles:
|
|
- gitea-git-repos
|
|
|
|
- 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
|