Ohai,
You copy the bootstrap template from the Chef gem directory on your local
On 12/24/12 8:13 AM, "Maven User" < "> > wrote:
>Jesse- We're using Ubuntu 12.04:
>
>-d ubuntu12.04-gems
>
>How do I do what you're talking about - a custom bootstrap script?
>
>http://wiki.opscode.com/display/chef/Custom+Knife+Bootstrap+Script
>
>It's not clear how to specify the gem I'd like (or how I get this file on
>the the machine I'm bootsrapping)....
workstation system to ~/.chef/bootstrap. The location depends on your
installation method on the local system. You can use the "gem which"
command. For example, in my rbenv installation of Chef:
% gem which chef/knife
/Users/jtimberman/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/chef-
10.16.2/lib/chef/knife.rb
There's a "knife/bootstrap" directory under lib/chef there. Under an
"omnibus" installation of Chef:
% /opt/chef/embedded/bin/gem which chef/knife
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb
Copy the bootstrap template file from the knife/bootstrap directory, then,
modify it as you need. It's a shell script with some embedded Ruby for
helpers from knife and your knife.rb.
Alternately, you could try the 'chef-full' template, which is the default,
and it installs the Omnibus package of Chef, and shouldn't have this
problem at all since it is built with moneta 0.6.0.
Cheers,
joshua
Archive powered by MHonArc 2.6.16.