[chef] Re: RE: Deploying Applications to Windows


Chronological Thread 
  • From: Dan Powell < >
  • To:
  • Subject: [chef] Re: RE: Deploying Applications to Windows
  • Date: Tue, 11 Feb 2014 16:13:18 +1300

Thanks for the prompt feedback but unfortunately the build artifact is in fact a web application (I should have confirmed this in the original post), the artifact is simply a compressed archive of all the web application files. A deployment of this build artifact consists of copying the files to the target system then ensuring the appropriate IIS resources are set up and running.

I would like my cookbook to only re-deploy the web application when I have configuration or content drift of the application on the target node. I've had a look at chocolatey but as far as I can see it won't combat configuration drift of the application, it will only re-deploy when it detects a newer version is available on the source.

Cheers


On Tue, Feb 11, 2014 at 3:52 PM, Conrad Heiney < " target="_blank"> > wrote:

The Windows cookbook has an LWRP for this (windows_package) which uses registry entries to ensure idempotence. Take a peek at http://community.opscode.com/cookbooks/windows

 

From: Dan Powell [mailto: " target="_blank"> ]
Sent: Monday, February 10, 2014 18:02
To: " target="_blank">
Subject: [chef] Deploying Applications to Windows

 

Hello,

I was wondering if I could get some advice on how to tackle a specific task. The task I need to perform is to take a build artifact ( a 7zip archive) and deploy it (extract and copy) to a server in an idempotent manner ie don't redeploy the application/build artifact if it already exists on the target server during a chef-client run. The target server will be a windows machine and won't have an SSH server running so I can't use the chef deploy resource (if I understand it correctly).

Has someone tackled a similar problem before, are you able to provide any advice on the best way to tackle this?

My current thinking is to bundle this into a LWRP which will compute a master checksum of all files in the artifact and then compare this with a master checksum of the files deployed to the target server.

 

Thanks in Advance

Dan





Archive powered by MHonArc 2.6.16.

§