Skip to content

[flux] allnode example nfs mount variables are different #60

@vsoch

Description

@vsoch

hey @wardharold ! Just a heads up for this example:

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions