diff --git a/ood-instance/main.tf b/ood-instance/main.tf index 6c039206d4b2f36d639ef4f1392417881bb819f3..8fd28e1e2f4e778c0eb574c890bb40e362d56b74 100644 --- a/ood-instance/main.tf +++ b/ood-instance/main.tf @@ -31,8 +31,8 @@ resource "openstack_compute_instance_v2" "ood" { user_data = <<-EOF #cloud-config runcmd: - - [ bash, -xc, 'ethernet=$(cat /sys/class/net/eth0/address); nodename=$(hostname -s); sed -e "s/MY_HWADDR/$ethernet/" -e "s/MY_NODENAME/$nodename/" -i /warewulf/config;' ] - - [ bash, -xc, "echo $(date) ': hello world!'; until WWGETFILES_INTERVAL=0 bash -x /warewulf/bin/wwgetfiles; do echo waiting ; rm -f /tmp/.wwgetfile.lock ; sleep 10; done;" ] + - [ bash, -xc, 'ethernet=$(cat /sys/class/net/eth1/address); nodename=$(hostname -s); sed -e "s/MY_HWADDR/$ethernet/" -e "s/MY_NODENAME/$nodename/" -i /warewulf/config;' ] + - [ bash, -xc, "echo $(date) ; until WWGETFILES_INTERVAL=0 bash -x /warewulf/bin/wwgetfiles; do echo waiting ; rm -f /tmp/.wwgetfile.lock ; sleep 10; done;" ] - [ bash, -xc, "systemctl restart munge" ] EOF