Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
knife exec -E 'nodes.all {|n| if n.name =~ /^i-/ then printf("%-45s\t%s\n" % [n.override.tomcat.vhost,n.ec2.ami_id]) end }'|sort

(Thanks, opscode!)

How to get whats installed for each MFI

...

You will need to install amazon-ec2 gem e.g. sudo gem install amazone-ec2 and knife should be working. Save the following script as state.rb and then invoke it knife exec state.rb:

...