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:
264
264
run : |
265
265
docker image pull $KAYOBE_IMAGE
266
266
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
269
279
- name : Reboot
270
280
run : |
271
281
docker run -t --rm \
Original file line number Diff line number Diff line change @@ -89,12 +89,10 @@ resource "null_resource" "kayobe-aio" {
89
89
# current images, /tmp is noexec, so the path must be changed
90
90
script_path = " /home/${ var . ssh_username } /start.sh"
91
91
}
92
- # In Caracal, OVN fails on Rocky 9 hosts with hostnames that contain a
93
- # subdomain (a dot in the name)
92
+
94
93
inline = [
95
94
" #!/bin/sh" ,
96
- " echo 'connected!'" ,
97
- " sudo hostnamectl set-hostname $(sed s/.novalocal// /etc/hostname)"
95
+ " echo 'connected!'"
98
96
]
99
97
}
100
98
}
You can’t perform that action at this time.
0 commit comments