koen_: require is a ruby thing, it's basically an include
koen_
something like include_recipe?
cheeseplus
commands that start with :: are using Ruby namespacing mechanics
no, include_recipe is a chef level thing
require is a ruby thing
it's a language level feature of Ruby
popsikle has quit
koen_
bt both perform the same operation?
cheeseplus
no
koen_
ok
cheeseplus
they are different things that have vastly different implications
koen_
knife ssh "role:web" "sudo chef-client" -x ec2-user -a ec2 ---> so this command will run a converge in all the machine that matches the search.my question is
how to bootstrap the nodes before running this
do u bootstrap one by one manually in production? using a knife bootstrap ? or any other better way?
Zhann has quit
Zhann joined the channel
the initial research showed we can use roles.but this is an example i found knife exec -E 'nodes.find("chef_environment:dev") {|n| puts n.run_list << "role[base]" unless n.run_list.include?("role[base]"); n.save }'
not sure what that snippet does
julian-delphiki joined the channel
julian-delphiki joined the channel
julian-delphiki has quit
julian-delphiki joined the channel
_foldLeft joined the channel
fatdragon has quit
julian-delphiki has quit
dustint joined the channel
iamchrisf joined the channel
nd__ has quit
iamchrisf has quit
AllanEspinosa joined the channel
cheeseplus
koen_: like I said last week, most folks don't actually bootstrap one by one
they have some other mechanism do it
phutchins has quit
koen_
could u brief more about the mechanism used?how about u ?
cheeseplus
that last snippet does uses `knife exec` which is effectively doing transforms against the API
there is no different mechanism, that is actually the same
phutchins joined the channel
the chef-client auto-registers on first run
that's just how it works
now how you install and deploy out config and key is up to you
cloud-init, packer, etc
_KaszpiR_ has quit
mlakat has quit
_KaszpiR_ joined the channel
PopsikleWork joined the channel
koen_
what does this do 'nodes.find("chef_environment:dev")