How bootstrap works ....?


#1

Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from where it will run chef-full.erb chef server or workstation…? in my case it is running from workstation.
I’m using open source chef server 12.

Regards,
PullaReddy
TechOps


#2

The template (chef-full.erb) is rendered on your workstation(or the server
from which bootstrap command is invoked) which gives a giant bash script,
which then executed over ssh against the remote node(one being bootstrapped)
On Dec 8, 2014 12:59 PM, “Malli Pulla Reddy” mpreddy@jamcracker.com wrote:

Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from where
it will run chef-full.erb chef server or workstation…? in my case it is
running from workstation.

I’m using open source chef server 12.

Regards,

PullaReddy

TechOps


#3

Got it!! but I don’t want to use template(default) which is available in workstation. My requirement is eve time when I run bootstrap it should pull chef-full.erb from server is it possible …?

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Monday, December 08, 2014 1:26 PM
To: chef@lists.opscode.com
Subject: [chef] Re: How bootstrap works …?

The template (chef-full.erb) is rendered on your workstation(or the server from which bootstrap command is invoked) which gives a giant bash script, which then executed over ssh against the remote node(one being bootstrapped)
On Dec 8, 2014 12:59 PM, “Malli Pulla Reddy” <mpreddy@jamcracker.commailto:mpreddy@jamcracker.com> wrote:
Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from where it will run chef-full.erb chef server or workstation…? in my case it is running from workstation.
I’m using open source chef server 12.

Regards,
PullaReddy
TechOps


#4

When you use bootstrap you may pass a -t option to use a custom
bootstrap script. I don’t believe it will take a URL, but you could
use a custom script to pull another server-side script down if
necessary.
https://docs.chef.io/knife_bootstrap.html

Thanks,
Matt Ray
Director of Partner Integration :: Chef
matt@chef.io :: 512.731.2218
mattray :: GitHub :: IRC :: Twitter

On Mon, Dec 8, 2014 at 2:31 AM, Malli Pulla Reddy
mpreddy@jamcracker.com wrote:

Got it!! but I don’t want to use template(default) which is available in
workstation. My requirement is eve time when I run bootstrap it should pull
chef-full.erb from server is it possible …?

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Monday, December 08, 2014 1:26 PM
To: chef@lists.opscode.com
Subject: [chef] Re: How bootstrap works …?

The template (chef-full.erb) is rendered on your workstation(or the server
from which bootstrap command is invoked) which gives a giant bash script,
which then executed over ssh against the remote node(one being bootstrapped)

On Dec 8, 2014 12:59 PM, “Malli Pulla Reddy” mpreddy@jamcracker.com wrote:

Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from where
it will run chef-full.erb chef server or workstation…? in my case it is
running from workstation.

I’m using open source chef server 12.

Regards,

PullaReddy

TechOps


#5

It would be nice if it would take a URL…

Martin Cleaver
Blended Perspectives

On Mon, Dec 8, 2014 at 11:37 AM, Matt Ray matt@getchef.com wrote:

When you use bootstrap you may pass a -t option to use a custom
bootstrap script. I don’t believe it will take a URL, but you could
use a custom script to pull another server-side script down if
necessary.
https://docs.chef.io/knife_bootstrap.html

Thanks,
Matt Ray
Director of Partner Integration :: Chef
matt@chef.io :: 512.731.2218
mattray :: GitHub :: IRC :: Twitter

On Mon, Dec 8, 2014 at 2:31 AM, Malli Pulla Reddy
mpreddy@jamcracker.com wrote:

Got it!! but I don’t want to use template(default) which is available in
workstation. My requirement is eve time when I run bootstrap it should
pull
chef-full.erb from server is it possible …?

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Monday, December 08, 2014 1:26 PM
To: chef@lists.opscode.com
Subject: [chef] Re: How bootstrap works …?

The template (chef-full.erb) is rendered on your workstation(or the
server
from which bootstrap command is invoked) which gives a giant bash script,
which then executed over ssh against the remote node(one being
bootstrapped)

On Dec 8, 2014 12:59 PM, “Malli Pulla Reddy” mpreddy@jamcracker.com
wrote:

Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from
where
it will run chef-full.erb chef server or workstation…? in my case it is
running from workstation.

I’m using open source chef server 12.

Regards,

PullaReddy

TechOps


#6

Has anyone confirmed that it will NOT accept a URL? If so, think we can get
that added to the page linked above?

On Mon, Dec 8, 2014 at 8:49 AM, Martin Cleaver mrjcleaver2@gmail.com
wrote:

It would be nice if it would take a URL…

Martin Cleaver
Blended Perspectives

On Mon, Dec 8, 2014 at 11:37 AM, Matt Ray matt@getchef.com wrote:

When you use bootstrap you may pass a -t option to use a custom
bootstrap script. I don’t believe it will take a URL, but you could
use a custom script to pull another server-side script down if
necessary.
https://docs.chef.io/knife_bootstrap.html

Thanks,
Matt Ray
Director of Partner Integration :: Chef
matt@chef.io :: 512.731.2218
mattray :: GitHub :: IRC :: Twitter

On Mon, Dec 8, 2014 at 2:31 AM, Malli Pulla Reddy
mpreddy@jamcracker.com wrote:

Got it!! but I don’t want to use template(default) which is available in
workstation. My requirement is eve time when I run bootstrap it should
pull
chef-full.erb from server is it possible …?

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Monday, December 08, 2014 1:26 PM
To: chef@lists.opscode.com
Subject: [chef] Re: How bootstrap works …?

The template (chef-full.erb) is rendered on your workstation(or the
server
from which bootstrap command is invoked) which gives a giant bash
script,
which then executed over ssh against the remote node(one being
bootstrapped)

On Dec 8, 2014 12:59 PM, “Malli Pulla Reddy” mpreddy@jamcracker.com
wrote:

Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from
where
it will run chef-full.erb chef server or workstation…? in my case it
is
running from workstation.

I’m using open source chef server 12.

Regards,

PullaReddy

TechOps

Kenneth Barry
TuneIn | Build and Release Engineer
M: 409-673-0544
www.tunein.com


#7

At least from my reading of the source
https://github.com/opscode/chef/blob/master/lib/chef/knife/bootstrap.rb#L197-L246,
it does not, no. I notice that there is an option called --bootstrap-url,
but that appears to simply be a way to tell the “chef-full” template an
alternate location for https://www.opscode.com/chef/install.sh

Matt Moretti

On Mon, Dec 8, 2014 at 12:13 PM, Kenneth Barry kbarry@tunein.com wrote:

Has anyone confirmed that it will NOT accept a URL? If so, think we can get

that added to the page linked above?

On Mon, Dec 8, 2014 at 8:49 AM, Martin Cleaver mrjcleaver2@gmail.com
wrote:

It would be nice if it would take a URL…

Martin Cleaver
Blended Perspectives

On Mon, Dec 8, 2014 at 11:37 AM, Matt Ray matt@getchef.com wrote:

When you use bootstrap you may pass a -t option to use a custom
bootstrap script. I don’t believe it will take a URL, but you could
use a custom script to pull another server-side script down if
necessary.
https://docs.chef.io/knife_bootstrap.html

Thanks,
Matt Ray
Director of Partner Integration :: Chef
matt@chef.io :: 512.731.2218
mattray :: GitHub :: IRC :: Twitter

On Mon, Dec 8, 2014 at 2:31 AM, Malli Pulla Reddy
mpreddy@jamcracker.com wrote:

Got it!! but I don’t want to use template(default) which is available
in
workstation. My requirement is eve time when I run bootstrap it should
pull
chef-full.erb from server is it possible …?

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Monday, December 08, 2014 1:26 PM
To: chef@lists.opscode.com
Subject: [chef] Re: How bootstrap works …?

The template (chef-full.erb) is rendered on your workstation(or the
server
from which bootstrap command is invoked) which gives a giant bash
script,
which then executed over ssh against the remote node(one being
bootstrapped)

On Dec 8, 2014 12:59 PM, “Malli Pulla Reddy” mpreddy@jamcracker.com
wrote:

Ohai everyone

Can someone explain how bootstrap works…?

when I run knife bootstrap 172.1.1.1 -sudo -x -P , from
where
it will run chef-full.erb chef server or workstation…? in my case it
is
running from workstation.

I’m using open source chef server 12.

Regards,

PullaReddy

TechOps

Kenneth Barry
TuneIn | Build and Release Engineer
M: 409-673-0544
www.tunein.com