- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: knife bootstrap using Chef-Solo?
- Date: Tue, 10 Jan 2012 20:59:29 +1300
Yo,
Sounds like you want to write your own bootstrap template.
Have a look at these:
https://github.com/opscode/chef/tree/master/chef/lib/chef/knife/bootstrap
Modify and drop one of these in your CHEF_REPO/.chef/bootstrap and use
it with one of the following:
knife bootstrap --template-file .chef/bootstrap/foo.erb OR
knife bootstrap --distro foo
Cheers,
AJ
On 10 January 2012 20:52, Torben Knerr
<
>
wrote:
>
Ohai guys!
>
>
Is there an example of knife-bootstrapping a chef node without having a chef
>
server?
>
>
I was thinking of something like 'knife bootstrap IP_ADDRESS -x user -P pass
>
--sudo -r "role[myrole]" --repo-tar "/path/to/tarballed/chef-repo.tgz"'
>
which would then upload the .tgz and use chef-solo to bootstrap the node
>
without a chef server required.
>
>
From looking at the wiki, knife bootstrap doesn't support this. Is there
>
another easy way to achieve the same thing?
>
>
Sure this would be limited as you could not do searches and data bags. I am
>
looking for a solution to set up VMs using Chef recipes if you don't have a
>
Chef Server available.
>
>
Cheers,
>
Torben
Archive powered by MHonArc 2.6.16.