From e780ee69ca1d4a8d9d7f2d381ee9c8b4a3798a8c Mon Sep 17 00:00:00 2001
From: Krish Moodbidri <krish94@uab.edu>
Date: Fri, 30 Aug 2019 15:04:46 -0500
Subject: [PATCH] changed eth address

---
 ood-instance/main.tf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ood-instance/main.tf b/ood-instance/main.tf
index 6c03920..8fd28e1 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
 
-- 
GitLab