Eric Ball | 2a0d0e5 | 2021-12-14 17:07:08 -0800 | [diff] [blame] | 1 | #!/bin/bash |
Andrew Grimberg | e3130de | 2021-12-16 08:23:56 -0800 | [diff] [blame] | 2 | until host github.com &>/dev/null |
Eric Ball | 2a0d0e5 | 2021-12-14 17:07:08 -0800 | [diff] [blame] | 3 | do |
Andrew Grimberg | e3130de | 2021-12-16 08:23:56 -0800 | [diff] [blame] | 4 | echo "Waiting until github.com is resolvable..." |
Eric Ball | 2a0d0e5 | 2021-12-14 17:07:08 -0800 | [diff] [blame] | 5 | done |
Andrew Grimberg | e3130de | 2021-12-16 08:23:56 -0800 | [diff] [blame] | 6 | git clone https://github.com/lfit/releng-global-jjb.git /opt/ciman/global-jjb |
| 7 | /opt/ciman/global-jjb/jenkins-init-scripts/init.sh |
Eric Ball | 2a0d0e5 | 2021-12-14 17:07:08 -0800 | [diff] [blame] | 8 | |
| 9 | IPADDR=$(facter ipaddress) |
| 10 | HOSTNAME=$(facter hostname) |
| 11 | FQDN=$(facter fqdn) |
| 12 | |
Kevin Sandi | 53de71d | 2021-12-16 10:35:22 -0600 | [diff] [blame] | 13 | echo "^${IPADDR} ^${HOSTNAME} ^${FQDN}" >> /etc/hosts |