Skip to content
Snippets Groups Projects

Remove post instatiation actions from all node types

Open John-Paul Robinson requested to merge feat-nodes-only into master
3 files
+ 8
21
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 1
4
@@ -27,10 +27,7 @@ resource "openstack_compute_instance_v2" "compute" {
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, "systemctl restart munge" ]
- [ bash, -xc, "systemctl restart slurmd" ]
- [ bash, -xc, 'echo DEBUG: empty user_data var: add post instantiation steps here' ]
EOF
# defines the networks of the instance
Loading