Skip to content

Commit e2b2f40

Browse files
committed
ci-multinode: Add API FQDNs to /etc/hosts in fix-networking.yml
This avoids using the add-fqdn.yml playbook in terraform-kayobe-multinode, which requires the Terraform/Ansible client to have access to all hosts.
1 parent c57f2c3 commit e2b2f40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

etc/kayobe/ansible/fix-networking.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
# Work around no known_hosts entry on first boot.
1111
ansible_ssh_common_args: "-o StrictHostKeyChecking=no"
1212
tasks:
13-
- name: Ensure `hosts` file contains pulp entries
13+
- name: Ensure `hosts` file contains pulp and API entries
1414
blockinfile:
1515
path: /etc/hosts
16-
marker: "# {mark} Kayobe Pulp entries"
16+
marker: "# {mark} Kayobe entries"
1717
block: |
1818
10.0.0.34 pelican pelican.service.compute.sms-lab.cloud
1919
10.205.3.187 pulp-server pulp-server.internal.sms-cloud
20+
192.168.37.2 internal.infra.mos.{{ root_domain }}
21+
192.168.39.2 public.infra.mos.{{ root_domain }}
2022
become: true

0 commit comments

Comments
 (0)