I hereby claim:
- I am dairennlombard on github.
- I am dlombard_disney (https://keybase.io/dlombard_disney) on keybase.
- I have a public key ASAyKSRKF35teyj1EjsulhUOC-UyGJWq-I6LFOIibXLsdwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Chef::DataBagItem.load('kmtcnfs', 'nfs')['nfsexports'].each do |exporthash| | |
exporthash.each do |serverpathkey, _clientpathkey| | |
nfs_export "food_critic_safe_#{serverpathkey['serverpath']}" do | |
directory serverpathkey['serverpath'] | |
network node['network']['CIDR'] | |
writeable false | |
sync true | |
options ['no_root_squash'] | |
only_if { File.exist?(serverpathkey['serverpath']) } | |
end |
{ | |
"id": "nfs", | |
"nfsexports": { | |
"demoexport1": { | |
"serverpath": "/var/tmp", | |
"clientpath": "/mnt" | |
}, | |
"demoexport2": { | |
"serverpath": "/var/tmp", | |
"clientpath": "/mnt" |
# data_bag JSON: | |
{ | |
"id": "example_data_bag_id", | |
"example_account": { | |
"private_value": "Example Private Data", | |
"public_value": "Example Public Data" | |
} | |
} |