[chef] Re: Need help getting Node IP


Chronological Thread 
  • From: Daniel Condomitti < >
  • To:
  • Subject: [chef] Re: Need help getting Node IP
  • Date: Mon, 14 Jul 2014 11:43:27 -0700

You’d need to perform a chef search for the target node by name or role:

consul_nodes = search(:node, 'role:consul_whatever')
 
if consul_nodes
execute "consul-join" do
command "consul join #{consul_nodes.first.ipaddress}"
action :run
end
end


On Monday, July 14, 2014 at 11:38 AM, Justin Franks wrote:

Help....

execute "consul-join" do
 command "consul join <IP address of some chef node name>"
 action :run
end




*************************
Justin Franks
Lead Operations Engineer
SaaS, Cloud, Data Centers & Infrastructure
Lithium Technologies, Inc
225 Bush St., 15th Floor
San Francisco, CA 94104
tel: +1 415 757 3100 x3219





Archive powered by MHonArc 2.6.16.

§