<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ryan Rousseau</title>
    <description>The latest articles on DEV Community by Ryan Rousseau (@ryanrousseau).</description>
    <link>https://dev.to/ryanrousseau</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F156522%2F8f1034fc-d96f-481b-8277-4094d347a102.jpg</url>
      <title>DEV Community: Ryan Rousseau</title>
      <link>https://dev.to/ryanrousseau</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ryanrousseau"/>
    <language>en</language>
    <item>
      <title>A tip for debugging Octopus Deploy variables</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Tue, 29 Mar 2022 21:49:21 +0000</pubDate>
      <link>https://dev.to/octopus/a-tip-for-debugging-octopus-deploy-variables-5e81</link>
      <guid>https://dev.to/octopus/a-tip-for-debugging-octopus-deploy-variables-5e81</guid>
      <description>&lt;p&gt;I sometimes need to debug issues related to incorrect variable substitutions or filters in my deployments.&lt;/p&gt;

&lt;p&gt;The Octopus docs have some tips on &lt;a href="https://octopus.com/docs/support/debug-problems-with-octopus-variables" rel="noopener noreferrer"&gt;debugging problems with variables&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The third option, writing variables to the deployment log, is the one I use the most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing variables to the deployment log
&lt;/h2&gt;

&lt;p&gt;Octopus provides two system variables, &lt;code&gt;OctopusPrintVariables&lt;/code&gt; and &lt;code&gt;OctopusPrintEvaluatedVariables.&lt;/code&gt; Setting these variables to &lt;code&gt;True&lt;/code&gt; will write all variable values to the deployment log.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;OctopusPrintVariables&lt;/code&gt; will write the unevaluated variable values to the log. &lt;code&gt;OctopusPrintEvaluatedVariables&lt;/code&gt; will write the fully evaluated variable values to the log.&lt;/p&gt;

&lt;p&gt;I find these useful enough to keep them in the project. Before, I have left the values set to &lt;code&gt;False&lt;/code&gt; when not using them. I change them to &lt;code&gt;True&lt;/code&gt; when I need to debug other variables. The doc page mentions that you can update the variable snapshot on a release instead of creating a new release when adding or updating these variables.&lt;/p&gt;

&lt;p&gt;I added a little extra to my configuration to avoid switching the values back and forth - prompted variables.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conditionally writing debug logs with Prompted Variables
&lt;/h2&gt;

&lt;p&gt;I configure &lt;code&gt;OctopusPrintEvaluatedVariables&lt;/code&gt; to also prompt with the label &lt;code&gt;Print Evaluated Variables?&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fblog.rousseau.dev%2Fo%2Fimages%252Fa-tip-for-debugging-octopus-deploy-variables%252Fvariable-definition.png%3Falt%3Dmedia" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fblog.rousseau.dev%2Fo%2Fimages%252Fa-tip-for-debugging-octopus-deploy-variables%252Fvariable-definition.png%3Falt%3Dmedia" alt="Image of prompted variable definition" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The values will default to &lt;code&gt;False&lt;/code&gt;. I can check the boxes during a deployment to turn on the debug logging only for that deployment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fblog.rousseau.dev%2Fo%2Fimages%252Fa-tip-for-debugging-octopus-deploy-variables%252Fdeploy-screen.png%3Falt%3Dmedia" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fblog.rousseau.dev%2Fo%2Fimages%252Fa-tip-for-debugging-octopus-deploy-variables%252Fdeploy-screen.png%3Falt%3Dmedia" alt="Image of the create deployment screen showing prompted variables" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrap-up
&lt;/h2&gt;

&lt;p&gt;Combining prompted variables with &lt;code&gt;OctopusPrintVariables&lt;/code&gt; and &lt;code&gt;OctopusPrintEvaluatedVariables&lt;/code&gt; provides an easy way to debug your deployments' variable values.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This post was originally published at &lt;a href="https://blog.rousseau.dev/posts/debugging-octopus-variables" rel="noopener noreferrer"&gt;blog.rousseau.dev&lt;/a&gt;. Cover photo by &lt;a href="https://unsplash.com/@timothycdykes" rel="noopener noreferrer"&gt;Timothy Dykes&lt;/a&gt; on &lt;a href="https://unsplash.com/" rel="noopener noreferrer"&gt;Unsplash&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>octopus</category>
      <category>debugging</category>
      <category>variables</category>
    </item>
    <item>
      <title>Ask Octopus - How do I set the master key for my Octopus container?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 22 Jan 2021 17:27:05 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-how-do-i-set-the-master-key-for-my-octopus-container-11ip</link>
      <guid>https://dev.to/octopus/ask-octopus-how-do-i-set-the-master-key-for-my-octopus-container-11ip</guid>
      <description>&lt;p&gt;You have Octopus running in a container. Now you need to upgrade or recreate the container. How do you reconnect to the existing database? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/CXRvPtRf92s"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://help.octopus.com/t/how-do-i-set-the-master-key-in-for-octopus-running-in-a-container/26134" rel="noopener noreferrer"&gt;https://help.octopus.com/t/how-do-i-set-the-master-key-in-for-octopus-running-in-a-container/26134&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>devops</category>
      <category>docker</category>
    </item>
    <item>
      <title>Ask Octopus - Can I host the Octopus Server in Docker?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Mon, 07 Dec 2020 19:12:05 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-host-the-octopus-server-in-docker-42ne</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-host-the-octopus-server-in-docker-42ne</guid>
      <description>&lt;p&gt;One of our recent frequently asked questions has been about hosting an Octopus Server in Docker? Can you do it? What do you need to know? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/3KplO0-VSEA"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://octopus.com/docs/installation/octopus-in-container" rel="noopener noreferrer"&gt;https://octopus.com/docs/installation/octopus-in-container&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>devops</category>
      <category>docker</category>
    </item>
    <item>
      <title>Ask Octopus - How can I set up Disaster Recovery?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Tue, 01 Dec 2020 14:38:03 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-how-can-i-set-up-disaster-recovery-2dc0</link>
      <guid>https://dev.to/octopus/ask-octopus-how-can-i-set-up-disaster-recovery-2dc0</guid>
      <description>&lt;p&gt;Wondering what your Disaster Recovery options are for your Octopus Server? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/xB9pHH_SPBo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://help.octopus.com/t/how-do-i-set-up-octopus-deploy-for-disaster-recovery/24081/2" rel="noopener noreferrer"&gt;https://help.octopus.com/t/how-do-i-set-up-octopus-deploy-for-disaster-recovery/24081/2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can I turn off health checks?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Mon, 23 Nov 2020 19:20:15 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-turn-off-health-checks-1ik9</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-turn-off-health-checks-1ik9</guid>
      <description>&lt;p&gt;You don't need health checks to run very often or at all. Can you disable them completely? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/OT2vfS-1qC4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://help.octopus.com/t/can-i-turn-off-health-checks/25996"&gt;https://help.octopus.com/t/can-i-turn-off-health-checks/25996&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://octopus.com/docs/infrastructure/deployment-targets/machine-policies"&gt;https://octopus.com/docs/infrastructure/deployment-targets/machine-policies&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can I have a test Octopus Server?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 13 Nov 2020 18:44:21 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-deploy-database-changes-4k96</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-deploy-database-changes-4k96</guid>
      <description>&lt;p&gt;You need another Octopus Server instance to test upgrades. Do you need another license? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/95AfIABANZM"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://help.octopus.com/t/can-i-have-multiple-octopus-servers-on-one-license/25961" rel="noopener noreferrer"&gt;https://help.octopus.com/t/can-i-have-multiple-octopus-servers-on-one-license/25961&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://octopus.com/pricing/faq#server-instances" rel="noopener noreferrer"&gt;https://octopus.com/pricing/faq#server-instances&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can I deploy database changes?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 06 Nov 2020 17:35:43 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-deploy-database-changes-4pg8</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-deploy-database-changes-4pg8</guid>
      <description>&lt;p&gt;You're interested in automating your database deployments but not sure where to start? Check out the resources available in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/chBGBfNd8X0"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Other resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://help.octopus.com/t/what-database-deployment-methods-technologies-does-octopus-support/25898"&gt;https://help.octopus.com/t/what-database-deployment-methods-technologies-does-octopus-support/25898&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://octopus.com/blog/search?q=database"&gt;https://octopus.com/blog/search?q=database&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - How do I ignore messages written to stderr?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 30 Oct 2020 17:16:51 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-how-do-i-ignore-messages-written-to-stderr-47pj</link>
      <guid>https://dev.to/octopus/ask-octopus-how-do-i-ignore-messages-written-to-stderr-47pj</guid>
      <description>&lt;p&gt;A tool that you're using in your deployments is writing informational logs to stderr, but you don't want the messages to show up as errors. What do you do? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/chBGBfNd8X0"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can consumers of my step templates provide their own packages?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 23 Oct 2020 17:00:52 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-consumers-of-my-step-templates-provide-their-own-packages-5h02</link>
      <guid>https://dev.to/octopus/ask-octopus-can-consumers-of-my-step-templates-provide-their-own-packages-5h02</guid>
      <description>&lt;p&gt;You want to write generic step templates that let the consumers provide their own packages. What do you do? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/ZvbGj5eLBAk"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can I use the date in the release number?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 16 Oct 2020 16:09:27 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-use-the-date-in-the-release-number-2369</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-use-the-date-in-the-release-number-2369</guid>
      <description>&lt;p&gt;You want to base your release versions on the current date. What do you do? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/ebN0wuzazVI"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can I make a copy of a project?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 09 Oct 2020 16:22:11 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-make-a-copy-of-a-project-2m4i</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-make-a-copy-of-a-project-2m4i</guid>
      <description>&lt;p&gt;You have a project that you want to copy and modify. What do you do? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/g1srv7-rVGg"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack" rel="noopener noreferrer"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ask Octopus - Can I change the Worker Pool by environment?</title>
      <dc:creator>Ryan Rousseau</dc:creator>
      <pubDate>Fri, 02 Oct 2020 16:01:21 +0000</pubDate>
      <link>https://dev.to/octopus/ask-octopus-can-i-change-the-worker-pool-by-environment-e8e</link>
      <guid>https://dev.to/octopus/ask-octopus-can-i-change-the-worker-pool-by-environment-e8e</guid>
      <description>&lt;p&gt;You have a script step that needs to run on different worker pools depending on the environment. What do you do? Find out in this Ask Octopus!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/pO-Rlzn4I0o"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Do you have a question about how to use Octopus? Email &lt;a href="mailto:advice@octopus.com"&gt;advice@octopus.com&lt;/a&gt; and someone from our team will get you an answer. You might even see it in a future episode.&lt;/p&gt;

&lt;p&gt;Join our community slack at &lt;a href="https://octopus.com/slack"&gt;https://octopus.com/slack&lt;/a&gt;&lt;/p&gt;

</description>
      <category>octopus</category>
      <category>tutorial</category>
      <category>devops</category>
      <category>api</category>
    </item>
  </channel>
</rss>
