Calling msbuild from chef


#1

Hi,

How would I go about calling msbuild from chef? In fact, to extend this, how
do I call commandline programs from chef under windows?

I’m converting a whole yheap of PowerShell-based scripts to Chef.

Kind regards

Sean.


#2

There is a good starter page for Chef on Windows here:
https://docs.chef.io/windows.html

There are built-in resources for batch, dsc_script and
powershell_script that should help make porting efforts easier.
https://docs.chef.io/windows.html#resources

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

On Sat, Jun 13, 2015 at 11:22 AM, Sean Farrow seanfarrow1984@gmail.com wrote:

Hi,

How would I go about calling msbuild from chef? In fact, to extend this, how
do I call commandline programs from chef under windows?

I’m converting a whole yheap of PowerShell-based scripts to Chef.

Kind regards

Sean.


#3

Matt had some great resources… there is also a Windows focused version of learn.chef.io that will walk you through getting started with Chef and running command via Chef on Windows.

Steve

Steven Murawski
Community Software Development Engineer @ Chef
Microsoft MVP - PowerShell
http://stevenmurawski.com

On June 13, 2015 at 2:23:53 PM, Matt Ray (matt@chef.io) wrote:

There is a good starter page for Chef on Windows here:
https://docs.chef.io/windows.html

There are built-in resources for batch, dsc_script and
powershell_script that should help make porting efforts easier.
https://docs.chef.io/windows.html#resources

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

On Sat, Jun 13, 2015 at 11:22 AM, Sean Farrow seanfarrow1984@gmail.com wrote:

Hi,

How would I go about calling msbuild from chef? In fact, to extend this, how
do I call commandline programs from chef under windows?

I’m converting a whole yheap of PowerShell-based scripts to Chef.

Kind regards

Sean.


#4

Sean,

Additionally, there’s this book (it’s somewhat light but is a good starting place):

Also, if you’re like me and like looking at code, there’s a thread here where I discussed trying to get a cookbook that would use dcpromo under powershell script:

Jim


On Sat, 6/13/15, Matt Ray matt@chef.io wrote:

Subject: [chef] Re: Calling msbuild from chef
To: chef@lists.opscode.com
Date: Saturday, June 13, 2015, 3:22 PM

There is a good starter page for Chef
on Windows here:
https://docs.chef.io/windows.html

There are built-in resources for batch, dsc_script and
powershell_script that should help make porting efforts
easier.
https://docs.chef.io/windows.html#resources

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

On Sat, Jun 13, 2015 at 11:22 AM, Sean Farrow seanfarrow1984@gmail.com
wrote:

Hi,

How would I go about calling msbuild from chef? In
fact, to extend this, how
do I call commandline programs from chef under
windows?

I’m converting a whole yheap of PowerShell-based
scripts to Chef.

Kind regards

Sean.