summaryrefslogtreecommitdiffstats
path: root/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/content
blob: ddbf96a078e7dd3a6404053f3b4d5c262458ace2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
until host github.com &>/dev/null
do
    echo "Waiting until github.com is resolvable..."
done
git clone https://github.com/lfit/releng-global-jjb.git /opt/ciman/global-jjb
/opt/ciman/global-jjb/jenkins-init-scripts/init.sh

IPADDR=$(facter ipaddress)
HOSTNAME=$(facter hostname)
FQDN=$(facter fqdn)

echo "^${IPADDR} ^${HOSTNAME} ^${FQDN}" >> /etc/hosts