tag:blogger.com,1999:blog-4678665813258338251.post8049198205230756414..comments2022-04-01T05:16:10.632-06:00Comments on The SysAdmin's Water Cooler: Using Chef to automate Octopus DeploymentsArpionihttp://www.blogger.com/profile/05852441317627424950noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4678665813258338251.post-63338917238422914982017-04-27T09:01:12.688-06:002017-04-27T09:01:12.688-06:00Alex, to answer your questions
1. Theoretically...Alex, to answer your questions<br /><br />1. Theoretically yes, but I found it faster to initiate it.<br /><br />2. Good catch, I included the Octo.exe file within my custom cookbook. You can download the latest from Octopus site, https://octopus.com/downloads choose the Command Line download<br /><br />3. This was assuming for a single Project. I do have a process to utilize multiple projects, here is some info to help out.<br /><br />Comma separate the Projects in the assigned role, ie: 'OctopusProjects' => "Project1,Project2"<br /><br />In your PowerShell create an array and then cycle through each Project and deploy it.<br />Something like this:<br />$projects="#{node['OctopusProjects']}"<br />$projects=$projects.split(",")<br />foreach ($project in $projects){<br /> << CODE TO DEPLOY LATEST RELEASE FOR PROJECT >><br />}<br /><br />Hope that helpsArpionihttps://www.blogger.com/profile/05852441317627424950noreply@blogger.comtag:blogger.com,1999:blog-4678665813258338251.post-79647100186284715062017-04-27T03:01:17.071-06:002017-04-27T03:01:17.071-06:00Hi Ryan,
These steps have been really great. I ha...Hi Ryan, <br />These steps have been really great. I have completed step 3 but I am confused on step 4. <br /><br />1. Shouldn’t the polling tentacle automatically be polling for any new updates as soon as step 3 is completed? <br /><br />2. In step 4 did you install a cookbook to get this file: c:/chef/cookbooks/octopus/files/octopus/Octo.exe<br />I don’t have that file in my cookbooks. I have checked the Octopus cookbook at https://supermarket.chef.io/cookbooks/octopus but that file is not contained in there too.<br /><br />3. If there are multiple projects assigned to a role how is that added to your script in step 4?<br /><br />Thank you so much for your information to assist in setting up Octopus.<br />AlexAnonymousnoreply@blogger.com