Skip to content
Snippets Groups Projects
Commit ba853696 authored by John-Paul Robinson's avatar John-Paul Robinson
Browse files

Add ansible playbook run to user-data script for ood ops

There is no call into ood by terraform so trigger it's ops
steps via an ansible-playbook during the user-data script.
parent e462bd58
No related merge requests found
......@@ -34,6 +34,7 @@ resource "openstack_compute_instance_v2" "ood" {
- [ 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, "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, "cd /CRI_XCBC; ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` /CRI_XCBC/ood-ops.yaml -b -v" ]
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment