From 3424c598f60571914aa63bab0c0bf12c1fc41fe6 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Tue, 11 Jan 2022 18:33:33 +0100 Subject: [PATCH] jenkins: set container hostname to jenkins (#60551) --- test-nspawn | 1 + 1 file changed, 1 insertion(+) diff --git a/test-nspawn b/test-nspawn index 540cafa..4afdc1f 100755 --- a/test-nspawn +++ b/test-nspawn @@ -21,6 +21,7 @@ then apt-key add entrouvert.gpg apt update /etc/init.d/postgresql start + hostname jenkins PORT=`pg_lsclusters | tail -n1 | awk '{ print $3 }'` echo 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: '$PORT'}" install.yml' su testuser -l -c 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: '$PORT'}" install.yml'