Auto installation/configuration of Chef Client in all provisioned VM's


#1

Hi,

I want to install and configure the chef client on all machine which are
deployed in my vCenter.

How to automate the task of installing and configuring the chef client on
provisioned machines…

Thanks,
SJ


#2

how you provision the vms? I used to bake in chef installers in vmware
machine templates, and weekly refresh them (change the validation cert).

On Fri, Jun 20, 2014 at 1:10 AM, Shanker Jadapa shankerrhce@gmail.com
wrote:

Hi,

I want to install and configure the chef client on all machine which are
deployed in my vCenter.

How to automate the task of installing and configuring the chef client on
provisioned machines…

Thanks,
SJ


#3

Have you tried using “knife bootstrap” to install chef-client on already created VMs? It should install chef-client on those machines with required configuration.

-Kapil

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Friday, June 20, 2014 11:06 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Auto installation/configuration of Chef Client in all provisioned VM’s

how you provision the vms? I used to bake in chef installers in vmware machine templates, and weekly refresh them (change the validation cert).

On Fri, Jun 20, 2014 at 1:10 AM, Shanker Jadapa <shankerrhce@gmail.commailto:shankerrhce@gmail.com> wrote:
Hi,

I want to install and configure the chef client on all machine which are deployed in my vCenter.

How to automate the task of installing and configuring the chef client on provisioned machines…

Thanks,
SJ


#4

currently, I am installing client using “knife bootstrap” but i want to
install in my “Golden Template”

On Fri, Jun 20, 2014 at 9:06 PM, Kapil Shardha <
Kapil.Shardha@simulationiq.com> wrote:

Have you tried using “knife bootstrap” to install chef-client on already
created VMs? It should install chef-client on those machines with required
configuration.

-Kapil

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Friday, June 20, 2014 11:06 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Auto installation/configuration of Chef Client in
all provisioned VM’s

how you provision the vms? I used to bake in chef installers in vmware
machine templates, and weekly refresh them (change the validation cert).

On Fri, Jun 20, 2014 at 1:10 AM, Shanker Jadapa shankerrhce@gmail.com
wrote:

Hi,

I want to install and configure the chef client on all machine which are
deployed in my vCenter.

How to automate the task of installing and configuring the chef client on
provisioned machines…

Thanks,

SJ


·.·´¨) Alwayz·.¸(¨·.·´¨) Keep Loving & (¨·.·´¨)´ Keep Smiling !
`·.¸.·´
·…·:Shanker:·…·:


#5

you can reuse knife bootstrap as a build tool. to create golden images.
knife commands are easy to use from scripts[1].
then you can have service specific golden images (web, db, ldap, nagios
etc).
you have to clean up chef configs post build (cert, client.r, etc),

[1] https://gist.github.com/ranjib/2db397f06f8d074eb8a0

On Fri, Jun 20, 2014 at 9:10 AM, Shanker Jadapa shankerrhce@gmail.com
wrote:

currently, I am installing client using “knife bootstrap” but i want to
install in my “Golden Template”

On Fri, Jun 20, 2014 at 9:06 PM, Kapil Shardha <
Kapil.Shardha@simulationiq.com> wrote:

Have you tried using “knife bootstrap” to install chef-client on
already created VMs? It should install chef-client on those machines with
required configuration.

-Kapil

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Friday, June 20, 2014 11:06 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Auto installation/configuration of Chef Client in
all provisioned VM’s

how you provision the vms? I used to bake in chef installers in vmware
machine templates, and weekly refresh them (change the validation cert).

On Fri, Jun 20, 2014 at 1:10 AM, Shanker Jadapa shankerrhce@gmail.com
wrote:

Hi,

I want to install and configure the chef client on all machine which are
deployed in my vCenter.

How to automate the task of installing and configuring the chef client on
provisioned machines…

Thanks,

SJ


·.·´¨) Alwayz·.¸(¨·.·´¨) Keep Loving & (¨·.·´¨)´ Keep Smiling !
`·.¸.·´
·…·:Shanker:·…·:


#6

I baked in the chef-client on my template and wrote a simple python
script to configure chef-client to start/rename the machine/reboot on
the first root login. After that point, roles can be assigned without
any further intervention.

On Fri, Jun 20, 2014 at 9:10 AM, Shanker Jadapa shankerrhce@gmail.com wrote:

currently, I am installing client using “knife bootstrap” but i want to
install in my “Golden Template”

On Fri, Jun 20, 2014 at 9:06 PM, Kapil Shardha
Kapil.Shardha@simulationiq.com wrote:

Have you tried using “knife bootstrap” to install chef-client on already
created VMs? It should install chef-client on those machines with required
configuration.

-Kapil

From: Ranjib Dey [mailto:dey.ranjib@gmail.com]
Sent: Friday, June 20, 2014 11:06 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Auto installation/configuration of Chef Client in all
provisioned VM’s

how you provision the vms? I used to bake in chef installers in vmware
machine templates, and weekly refresh them (change the validation cert).

On Fri, Jun 20, 2014 at 1:10 AM, Shanker Jadapa shankerrhce@gmail.com
wrote:

Hi,

I want to install and configure the chef client on all machine which are
deployed in my vCenter.

How to automate the task of installing and configuring the chef client on
provisioned machines…

Thanks,

SJ


·.·´¨) Alwayz·.¸(¨·.·´¨) Keep Loving & (¨·.·´¨)´ Keep Smiling !
`·.¸.·´
·…·:Shanker:·…·: