Skip to content

Instantly share code, notes, and snippets.

@mattray
Created February 12, 2011 03:42
Show Gist options
  • Save mattray/823478 to your computer and use it in GitHub Desktop.
Save mattray/823478 to your computer and use it in GitHub Desktop.
euca-describe-groups
cmd = Chef::ShellOut.new("sudo -i -u #{node[:nova][:creds][:user]} euca-describe-groups")
groups = cmd.run_command
execute "euca-authorize -P icmp -t -1:-1 default" do
user node[:nova][:creds][:user]
not_if {groups.stdout.include?("icmp")}
end
execute "euca-authorize -P tcp -p 22 default" do
user node[:nova][:creds][:user]
not_if {groups.stdout.include?("tcp")}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment