Skip to content

Instantly share code, notes, and snippets.

View dairennlombard's full-sized avatar

Dairenn Lombard dairennlombard

  • Southern California, United States
View GitHub Profile

Keybase proof

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:

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"
@dairennlombard
dairennlombard / gist:9820a82f45c734160983
Last active August 29, 2015 14:22
Ruby vars as an array element name?
# data_bag JSON:
{
"id": "example_data_bag_id",
"example_account": {
"private_value": "Example Private Data",
"public_value": "Example Public Data"
}
}