-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
hey @wardharold ! Just a heads up for this example:
scientific-computing-examples/fluxfw-gcp/tf/examples/allinone/main.tf
Lines 28 to 31 in 2c96ce1
| cluster_storage = { | |
| mountpoint = "/home" | |
| share = "${module.nfs_server_instance.instances_details.0.network_interface.0.network_ip}:/var/nfs/home" | |
| } |
This is what I've found to work:
# This enables NFS
nfsmounts=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/attributes/nfs-mounts" -H "Metadata-Flavor: Google")
if [[ "X${nfsmounts}" != "X" ]]; then
share=$(echo $nfsmounts | jq -r '.share')
mountpoint=$(echo $nfsmounts | jq -r '.mountpoint')
bash -c "sudo echo ${share} ${mountpoint} nfs defaults,hard,intr,_netdev 0 0 >> /etc/fstab"
mount -a
fi
No need to edit / fix anything here promptly - I'm working off a totally different set of modules (one base image and one boot script) and I just noticed this tiny detail. This is mostly an FYI if someone tries this allinone example in the future!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels