infra-prod: use prod_bastion group

This is similar in purpose to
I137ab824b9a09ccb067b8d5f0bb2896192291883 to separate out where we are
talking to the bastion host from the executor, versus the nested
ansible CD run.

Add the host in the "prod_bastion" group, and switch the source setup
playbook to use "prod_bastion[0]".  This reduces the number of places
you have to update the bridge name when you change the host.

Change-Id: I66df4057b3990eed2230d894ff42d0a425a2381a
This commit is contained in:
Ian Wienand 2022-11-04 09:23:46 +11:00
parent f53b34c171
commit 543a02f059
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -12,11 +12,11 @@
ansible_port: 22
# Port 19885 is firewalled
zuul_console_disabled: true
# Note this is the only host in the bastion group. The playbooks
# are written to refer to "bastion[0]" rather than the hostname
# directly, so we can swap the hostname more easily.
# Playbooks are written to refer to "prod_bastion[0]" rather
# than the hostname directly, so we can swap the bridge
# hostname more easily.
groups:
- bastion
- prod_bastion
- name: Add bridge.o.o hostkey to known hosts
known_hosts:

View File

@ -1,4 +1,4 @@
- hosts: bridge01.opendev.org
- hosts: prod_bastion[0]
tasks:
- name: "Make sure a manual maintenance isn't going on"
wait_for: