Created
September 28, 2012 04:45
-
-
Save addisonj/3797963 to your computer and use it in GitHub Desktop.
Get an error about node['ec2'] being nil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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