Chef-client msi cli flags


#1

I’m looking to find the option flags for command line installations of the chef-client-xxxx.msi. I’ve searched the docs with no success.

I know about the obvious /passive, /quiet, etc.

I’m looking for the options to install the windows service option. Anyone have the magic knowledge.

Thanks,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit
Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories


#2

Hello Wade. I think you should be able to do this via ADDLOCAL, i.e. on msiexec cli add:

ADDLOCAL=“CHEFCLIENTSERVICE”

That said, I haven’t yet tried it myself. :slight_smile: Let us know if it works, if not, I’ll do a little more digging.


Adam Edwards
Software Development Engineer, Opscode, Inc.

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 8:28 AM
To: chef@lists.opscode.com
Subject: [chef] chef-client msi cli flags

I’m looking to find the option flags for command line installations of the chef-client-xxxx.msi. I’ve searched the docs with no success.

I know about the obvious /passive, /quiet, etc.

I’m looking for the options to install the windows service option. Anyone have the magic knowledge.

Thanks,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit

Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories


#3

chef-client-10.26.0-1.msi ADDLOCAL=“CHEFCLIENTSERVICE” result is installer exciting with error 2711
same for 11.4.4-2 client

From: Adam Edwards [mailto:adamed@opscode.com]
Sent: Tuesday, June 04, 2013 4:20 PM
To: chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

Hello Wade. I think you should be able to do this via ADDLOCAL, i.e. on msiexec cli add:

ADDLOCAL=“CHEFCLIENTSERVICE”

That said, I haven’t yet tried it myself. :slight_smile: Let us know if it works, if not, I’ll do a little more digging.


Adam Edwards
Software Development Engineer, Opscode, Inc.

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 8:28 AM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] chef-client msi cli flags

I’m looking to find the option flags for command line installations of the chef-client-xxxx.msi. I’ve searched the docs with no success.

I know about the obvious /passive, /quiet, etc.

I’m looking for the options to install the windows service option. Anyone have the magic knowledge.

Thanks,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit

Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories


#4

Thanks Wade. The feature is only present on the latest Chef 11 client releases. The correct name is “ChefServiceFeature”, here’s the command line I used just now successfully (no errors), though in terms of validating the service installation on that box I have multiple instances installed, so to be absolutely sure I need to try it on a clean box:

msiexec /qb /i c:\inst\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefServiceFeature”

I experienced weird behavior when I didn’t specify an absolute path to the msi, so be sure to do that when you try it out - let us know how it works.

-Adam

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 5:45 PM
To: chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

chef-client-10.26.0-1.msi ADDLOCAL=“CHEFCLIENTSERVICE” result is installer exciting with error 2711
same for 11.4.4-2 client

From: Adam Edwards [mailto:adamed@opscode.com]
Sent: Tuesday, June 04, 2013 4:20 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

Hello Wade. I think you should be able to do this via ADDLOCAL, i.e. on msiexec cli add:

ADDLOCAL=“CHEFCLIENTSERVICE”

That said, I haven’t yet tried it myself. :slight_smile: Let us know if it works, if not, I’ll do a little more digging.


Adam Edwards
Software Development Engineer, Opscode, Inc.

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 8:28 AM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] chef-client msi cli flags

I’m looking to find the option flags for command line installations of the chef-client-xxxx.msi. I’ve searched the docs with no success.

I know about the obvious /passive, /quiet, etc.

I’m looking for the options to install the windows service option. Anyone have the magic knowledge.

Thanks,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit

Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories


#5

Thanks for the information Adam.

After a bit of guessing I figured out what the Client Feature is called.

So what you suggested is good for adding the service to a system that has the client already, to install both the client and the service I tried:

Win2K3 32-Bit R2 (Works):

CMD PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-10.26.0-1.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive
CMD PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive

Win2k8 64-Bit R2 w/SP1 (Works):

CMD (ADMIN) PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-10.26.0-1.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive
CMD (ADMIN) PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive

I hope that someone else finds this helpful,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit
Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories

From: Adam Edwards [mailto:adamed@opscode.com]
Sent: Tuesday, June 04, 2013 8:11 PM
To: chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

Thanks Wade. The feature is only present on the latest Chef 11 client releases. The correct name is “ChefServiceFeature”, here’s the command line I used just now successfully (no errors), though in terms of validating the service installation on that box I have multiple instances installed, so to be absolutely sure I need to try it on a clean box:

msiexec /qb /i c:\inst\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefServiceFeature”

I experienced weird behavior when I didn’t specify an absolute path to the msi, so be sure to do that when you try it out - let us know how it works.

-Adam

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 5:45 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

chef-client-10.26.0-1.msi ADDLOCAL=“CHEFCLIENTSERVICE” result is installer exciting with error 2711
same for 11.4.4-2 client

From: Adam Edwards [mailto:adamed@opscode.com]
Sent: Tuesday, June 04, 2013 4:20 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

Hello Wade. I think you should be able to do this via ADDLOCAL, i.e. on msiexec cli add:

ADDLOCAL=“CHEFCLIENTSERVICE”

That said, I haven’t yet tried it myself. :slight_smile: Let us know if it works, if not, I’ll do a little more digging.


Adam Edwards
Software Development Engineer, Opscode, Inc.

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 8:28 AM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] chef-client msi cli flags

I’m looking to find the option flags for command line installations of the chef-client-xxxx.msi. I’ve searched the docs with no success.

I know about the obvious /passive, /quiet, etc.

I’m looking for the options to install the windows service option. Anyone have the magic knowledge.

Thanks,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit

Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories


#6

Thanks for digging Wade, that is indeed useful, particularly for anyone deploying chef-client to a large number of nodes through some software dist system (e.g. Group policy, SCCM, etc.).

-Adam

From: Wade Peacock <Wade.Peacock@visioncritical.commailto:Wade.Peacock@visioncritical.com>
Reply-To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Date: Wednesday, June 5, 2013 8:25 AM
To: "chef@lists.opscode.commailto:chef@lists.opscode.com" <chef@lists.opscode.commailto:chef@lists.opscode.com>
Subject: [chef] RE: chef-client msi cli flags

Thanks for the information Adam.

After a bit of guessing I figured out what the Client Feature is called.

So what you suggested is good for adding the service to a system that has the client already, to install both the client and the service I tried:

Win2K3 32-Bit R2 (Works):

CMD PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-10.26.0-1.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive
CMD PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive

Win2k8 64-Bit R2 w/SP1 (Works):

CMD (ADMIN) PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-10.26.0-1.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive
CMD (ADMIN) PROMPT> \plchef.xxxxx.local\InstallSrc\Chef-Prodlabs\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefClientFeature,ChefServiceFeature” /passive

I hope that someone else finds this helpful,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit
Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories

From: Adam Edwards [mailto:adamed@opscode.com]
Sent: Tuesday, June 04, 2013 8:11 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

Thanks Wade. The feature is only present on the latest Chef 11 client releases. The correct name is “ChefServiceFeature”, here’s the command line I used just now successfully (no errors), though in terms of validating the service installation on that box I have multiple instances installed, so to be absolutely sure I need to try it on a clean box:

msiexec /qb /i c:\inst\chef-client-11.4.4-2.windows.msi ADDLOCAL=“ChefServiceFeature”

I experienced weird behavior when I didn’t specify an absolute path to the msi, so be sure to do that when you try it out – let us know how it works.

-Adam

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 5:45 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

chef-client-10.26.0-1.msi ADDLOCAL=“CHEFCLIENTSERVICE” result is installer exciting with error 2711
same for 11.4.4-2 client

From: Adam Edwards [mailto:adamed@opscode.com]
Sent: Tuesday, June 04, 2013 4:20 PM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] RE: chef-client msi cli flags

Hello Wade. I think you should be able to do this via ADDLOCAL, i.e. on msiexec cli add:

ADDLOCAL=“CHEFCLIENTSERVICE”

That said, I haven’t yet tried it myself. :slight_smile: Let us know if it works, if not, I’ll do a little more digging.


Adam Edwards
Software Development Engineer, Opscode, Inc.

From: Wade Peacock [mailto:Wade.Peacock@visioncritical.com]
Sent: Tuesday, June 4, 2013 8:28 AM
To: chef@lists.opscode.commailto:chef@lists.opscode.com
Subject: [chef] chef-client msi cli flags

I’m looking to find the option flags for command line installations of the chef-client-xxxx.msi. I’ve searched the docs with no success.

I know about the obvious /passive, /quiet, etc.

I’m looking for the options to install the windows service option. Anyone have the magic knowledge.

Thanks,

Wade Peacock
Production IT - Automation/System Engineer | Vision Critical
direct +1.604.629.9358 mobile +1.604.363.8137
web visioncritical.comhttp://www.visioncritical.com/ | @VisionCritical on Twitterhttps://twitter.com/visioncritical | Visit Vision Critical on LinkedInhttp://www.linkedin.com/company/vision-critical

New York | London | Hong Kong | Vancouver | Paris | San Francisco | Sydney | Tokyo | Toronto | Cologne | Minneapolis | Chicago | Ottawa | Detroit

Click here to watch our clients share their Vision Critical successes: www.visioncritical.com/client-storieshttp://www.visioncritical.com/client-stories