on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]
on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]
on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]
On Tue, Mar 5, 2013 at 10:37 AM, Adam Jacob <adam@opscode.commailto:adam@opscode.com> wrote:
I wonder if we should move some of that into the core DSL. Super useful,
non intrusive.
on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]
on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]
on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]
on the CLI, you can pass the '-a / --attribute' flag to get a
particular attribute tree from the object.
In the recipe, it'll look something like
servers = search(:node, "roles:bar AND chef_environment:production")
server = servers.first
ip = server['ipaddress'] # Just a Chef::Node object here.
Check out Heavy Water's discovery cookbook for some recipe helpers,
like 'empty ok?', local node fall-back, environment aware search, sort
by check-in time & cloud-aware IP addressing preferences. [0]