[chef] Re: AWS cookbook and the run list


Chronological Thread 
  • From: Nick Bellamy < >
  • To:
  • Subject: [chef] Re: AWS cookbook and the run list
  • Date: Wed, 14 Jan 2015 13:53:38 -0600

We make pretty frequent usage of

if node[:virtualization][:system] == "vbox"

On Wed, Jan 14, 2015 at 1:47 PM, Greg Barker < " target="_blank"> > wrote:
I want to use the AWS cookbook to attach EBS volumes. I wasn't sure what the best way to ensure that it only happens when the node is actually an EC2 instance, and not a local Vagrant VM. Separate roles? Separate environments and use env_run_lists? Is there something like if node['is_ec2']?

Thanks!
Greg




Archive powered by MHonArc 2.6.16.

§