Chef-Client deployment

Hi,

is there any process to install the chef-client on 500 windows machines.
adding individually through “knife bootstrap” is pain for me.

Thanks
Shankar Jadapa

Hello you can run remotely that command in a batch task..

knife bootstrap windows winrm 192.168.0.10 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.11 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.12 -r 'role[your_role]' -x
'domain_user' -P 'the pass'

And so on...

Regards!

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

Hi,

is there any process to install the chef-client on 500 windows machines.
adding individually through "knife bootstrap" is pain for me.

Thanks
Shankar Jadapa

If I am using the invidual client installation, its working.
I testing using shell script to push the chef-client, its not working.

#script

for i in 1 2 3
do

  •   knife bootstrap windows winrm 'pam-vm00$i'  -x administrator -P
    

'test123' -p 5985*
done

On Tue, Jun 17, 2014 at 12:45 PM, Carlos Camacho <
carlos.camacho@frontiersin.org> wrote:

Hello you can run remotely that command in a batch task..

knife bootstrap windows winrm 192.168.0.10 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.11 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.12 -r 'role[your_role]' -x
'domain_user' -P 'the pass'

And so on...

Regards!

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

Hi,

is there any process to install the chef-client on 500 windows machines.
adding individually through "knife bootstrap" is pain for me.

Thanks
Shankar Jadapa

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

In your command line, you use single quotes: ‘pam-vm00$i’. In bash, single quotes means, take everything inside literally, including the dollar sign and the i. If you want the $i to be substituted with the value of the variable i, you need to use double quotes.

Also, be careful with the user name “administrator”. By default, that account is disabled in recent Windows versions.

From: Shanker Jadapa [mailto:shankerrhce@gmail.com]
Sent: Tuesday, June 17, 2014 12:34 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Chef-Client deployment

If I am using the invidual client installation, its working.

I testing using shell script to push the chef-client, its not working.

#script

for i in 1 2 3

do

   knife bootstrap windows winrm 'pam-vm00$i'  -x administrator -P 'test123' -p 5985

done

On Tue, Jun 17, 2014 at 12:45 PM, Carlos Camacho <carlos.camacho@frontiersin.org mailto:carlos.camacho@frontiersin.org > wrote:

Hello you can run remotely that command in a batch task..

knife bootstrap windows winrm 192.168.0.10 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.11 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.12 -r 'role[your_role]' -x
'domain_user' -P 'the pass'

And so on...

Regards!

On Tue, Jun 17, 2014 at 9:10 AM, Shanker Jadapa <shankerrhce@gmail.com mailto:shankerrhce@gmail.com > wrote:

Hi,

is there any process to install the chef-client on 500 windows machines.
adding individually through "knife bootstrap" is pain for me.

Thanks
Shankar Jadapa

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

You have to check that winrm is enabled!!

On Tue, Jun 17, 2014 at 9:45 AM, Kevin Keane Subscription
subscription@kkeane.com wrote:

In your command line, you use single quotes: ‘pam-vm00$i’. In bash, single
quotes means, take everything inside literally, including the dollar sign
and the i. If you want the $i to be substituted with the value of the
variable i, you need to use double quotes.

Also, be careful with the user name “administrator”. By default, that
account is disabled in recent Windows versions.

From: Shanker Jadapa [mailto:shankerrhce@gmail.com]
Sent: Tuesday, June 17, 2014 12:34 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Chef-Client deployment

If I am using the invidual client installation, its working.

I testing using shell script to push the chef-client, its not working.

#script

for i in 1 2 3

do

   knife bootstrap windows winrm 'pam-vm00$i'  -x administrator -P

'test123' -p 5985

done

On Tue, Jun 17, 2014 at 12:45 PM, Carlos Camacho
carlos.camacho@frontiersin.org wrote:

Hello you can run remotely that command in a batch task..

knife bootstrap windows winrm 192.168.0.10 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.11 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.12 -r 'role[your_role]' -x
'domain_user' -P 'the pass'

And so on...

Regards!

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

Hi,

is there any process to install the chef-client on 500 windows machines.
adding individually through "knife bootstrap" is pain for me.

Thanks
Shankar Jadapa

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

Thanks Kevin

On Tue, Jun 17, 2014 at 1:15 PM, Kevin Keane Subscription <
subscription@kkeane.com> wrote:

In your command line, you use single quotes: ‘pam-vm00$i’. In bash, single
quotes means, take everything inside literally, including the dollar sign
and the i. If you want the $i to be substituted with the value of the
variable i, you need to use double quotes.

Also, be careful with the user name “administrator”. By default, that
account is disabled in recent Windows versions.

From: Shanker Jadapa [mailto:shankerrhce@gmail.com]
Sent: Tuesday, June 17, 2014 12:34 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Chef-Client deployment

If I am using the invidual client installation, its working.

I testing using shell script to push the chef-client, its not working.

#script

for i in 1 2 3

do

  •   knife bootstrap windows winrm 'pam-vm00$i'  -x administrator -P
    

'test123' -p 5985*

done

On Tue, Jun 17, 2014 at 12:45 PM, Carlos Camacho <
carlos.camacho@frontiersin.org> wrote:

Hello you can run remotely that command in a batch task..

knife bootstrap windows winrm 192.168.0.10 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.11 -r 'role[your_role]' -x
'domain_user' -P 'the pass'
knife bootstrap windows winrm 192.168.0.12 -r 'role[your_role]' -x
'domain_user' -P 'the pass'

And so on...

Regards!

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

Hi,

is there any process to install the chef-client on 500 windows machines.
adding individually through "knife bootstrap" is pain for me.

Thanks
Shankar Jadapa

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

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