[chef] Re: Re: How do I configure /etc/network/interfaces using chef?


Chronological Thread 
  • From: Eric Herot < >
  • To:
  • Subject: [chef] Re: Re: How do I configure /etc/network/interfaces using chef?
  • Date: Wed, 19 Mar 2014 12:25:26 -0400

Not sure if this is useful for your particular case but if what you’re trying to do is set up some existing physical NICs (or virtual NICs if you’re in a cloud computing environment) there is a cookbook for that:

https://github.com/redguide/network_interfaces
-- 
Eric

On March 19, 2014 at 12:09:24 PM, Kenneth Barry ( "> ) wrote:

I'm going to take an initial whack at this, and say I "think" its going to be something like

node[network][interfaces].each do |nic|
[whatever you want to do here]

Youll probably wanna add a bit of logic just after that first line to help ignore it is the nic is the lo nic.

Other will certainly improve on this.


On Wed, Mar 19, 2014 at 8:10 AM, Maciek Misztal < " target="_blank"> > wrote:
I'm looking for a way to configure N (N=3) ubuntu nodes with 2 network interfaces each - since I'm a complete newb, what is the proper way to do it?

Regards,
Maciej




Archive powered by MHonArc 2.6.16.

§