system-config/playbooks/remote_puppet_git.yaml
Clark Boylan 6baa9dca5c Put gitea06 back in the rotation
This server was replaced and has had its db restored from backup on
gitea01, repo dirs recreated via gitea admin ui function, and gerrit has
replicated all repo content to this server.

Put this back into the rotation in haproxy as well as the ansible
management of gitea git repos.

Change-Id: I424d0db0adf0787d5d46e264b6552d79b48f27ef
2019-06-26 16:36:57 -07:00

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