File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,18 @@ jobs:
264264 run : |
265265 docker image pull $KAYOBE_IMAGE
266266
267- # Reboot to ensure hostname does not contain .novalocal suffix
268- # See remote exec provisioner in vm.tf
267+ # Rocky 9 OVN deployments will fail when the hostname contains a '.'
268+ - name : Fix hostname
269+ run : |
270+ docker run -t --rm \
271+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
272+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
273+ ${{ steps.kayobe_image.outputs.kayobe_image }} \
274+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/fix-hostname.yml
275+ env :
276+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
277+
278+ # Reboot to Apply hostname change
269279 - name : Reboot
270280 run : |
271281 docker run -t --rm \
Original file line number Diff line number Diff line change @@ -89,12 +89,10 @@ resource "null_resource" "kayobe-aio" {
8989 # current images, /tmp is noexec, so the path must be changed
9090 script_path = " /home/${ var . ssh_username } /start.sh"
9191 }
92- # In Caracal, OVN fails on Rocky 9 hosts with hostnames that contain a
93- # subdomain (a dot in the name)
92+
9493 inline = [
9594 " #!/bin/sh" ,
96- " echo 'connected!'" ,
97- " sudo hostnamectl set-hostname $(sed s/.novalocal// /etc/hostname)"
95+ " echo 'connected!'"
9896 ]
9997 }
10098}
You can’t perform that action at this time.
0 commit comments