Skip to content

Instantly share code, notes, and snippets.

@addisonj
Created September 28, 2012 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save addisonj/3797963 to your computer and use it in GitHub Desktop.
Save addisonj/3797963 to your computer and use it in GitHub Desktop.
Get an error about node['ec2'] being nil
file "/etc/chef/ohai/hints/ec2.json" do
action :create
end
ohai "reload" do
action :reload
end
execute "create and mount non provisioned EBS volumes" do
environment ({
'AWS_ACCESS_KEY_ID' => node["make-raid"]["aws_access_key"],
'AWS_SECRET_ACCESS_KEY' => node["make-raid"]["aws_secret_key"],
"AWS_REGION" => node["make-raid"]["aws_region"]
})
command "ruby #{normalEbsScriptPath} #{node['ec2']['instance_id']} #{volume_size}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment