<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Best Practices for Automating Dynatrace OneAgent Deployment via Chef in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Best-Practices-for-Automating-Dynatrace-OneAgent-Deployment-via/m-p/279238#M36732</link>
    <description>&lt;P&gt;Hi Dynatrace Community,&lt;/P&gt;
&lt;P&gt;We’re currently working on automating the deployment of &lt;STRONG&gt;Dynatrace OneAgent&lt;/STRONG&gt; on virtual machine images using a &lt;STRONG&gt;Chef cookbook&lt;/STRONG&gt;. The intended flow involves a shell script that:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Executes a wget command to download the OneAgent installer to the target VM,&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Runs the modified installer with predefined parameters (e.g., custom log directory, monitoring mode, etc.).&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To support this, we’ve ensured the following environment preparations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;A persistent, mounted /opt/dynatrace directory with at least 5GB allocated,&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Verified connectivity across our internal network to reach Dynatrace SaaS/Managed servers as required.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;However, I’m facing a few questions and would appreciate guidance from the community:&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;1. Fixing or Dynamically Pulling Agent Versions&lt;/STRONG&gt;&lt;BR /&gt;What is the best practice for downloading the installer via wget in a way that allows dynamically fetching the latest available version? since using wget command allows downloading and fetching only a fixed version of the agent.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Download Token Expiry&lt;/STRONG&gt;&lt;BR /&gt;Does the OneAgent download token have an expiration date or lifecycle policy I should be aware of?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Token Rotation &amp;amp; Secure Usage&lt;/STRONG&gt;&lt;BR /&gt;What is the recommended approach to securely rotate the download token and integrate it into a script used by the Chef cookbook? Any best practices for token management at scale would be greatly appreciated.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;If anyone has successfully implemented a similar solution or has tips on robust agent deployment pipelines using configuration management tools, I’d love to hear about it.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help and insights!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Roei&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2025 06:38:32 GMT</pubDate>
    <dc:creator>Roeir5</dc:creator>
    <dc:date>2025-06-13T06:38:32Z</dc:date>
    <item>
      <title>Best Practices for Automating Dynatrace OneAgent Deployment via Chef</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Best-Practices-for-Automating-Dynatrace-OneAgent-Deployment-via/m-p/279238#M36732</link>
      <description>&lt;P&gt;Hi Dynatrace Community,&lt;/P&gt;
&lt;P&gt;We’re currently working on automating the deployment of &lt;STRONG&gt;Dynatrace OneAgent&lt;/STRONG&gt; on virtual machine images using a &lt;STRONG&gt;Chef cookbook&lt;/STRONG&gt;. The intended flow involves a shell script that:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Executes a wget command to download the OneAgent installer to the target VM,&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Runs the modified installer with predefined parameters (e.g., custom log directory, monitoring mode, etc.).&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;To support this, we’ve ensured the following environment preparations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;A persistent, mounted /opt/dynatrace directory with at least 5GB allocated,&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Verified connectivity across our internal network to reach Dynatrace SaaS/Managed servers as required.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;However, I’m facing a few questions and would appreciate guidance from the community:&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;1. Fixing or Dynamically Pulling Agent Versions&lt;/STRONG&gt;&lt;BR /&gt;What is the best practice for downloading the installer via wget in a way that allows dynamically fetching the latest available version? since using wget command allows downloading and fetching only a fixed version of the agent.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Download Token Expiry&lt;/STRONG&gt;&lt;BR /&gt;Does the OneAgent download token have an expiration date or lifecycle policy I should be aware of?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Token Rotation &amp;amp; Secure Usage&lt;/STRONG&gt;&lt;BR /&gt;What is the recommended approach to securely rotate the download token and integrate it into a script used by the Chef cookbook? Any best practices for token management at scale would be greatly appreciated.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;If anyone has successfully implemented a similar solution or has tips on robust agent deployment pipelines using configuration management tools, I’d love to hear about it.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help and insights!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Roei&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 06:38:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Best-Practices-for-Automating-Dynatrace-OneAgent-Deployment-via/m-p/279238#M36732</guid>
      <dc:creator>Roeir5</dc:creator>
      <dc:date>2025-06-13T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practices for Automating Dynatrace OneAgent Deployment via Chef</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Best-Practices-for-Automating-Dynatrace-OneAgent-Deployment-via/m-p/279488#M36751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/81319"&gt;@Roeir5&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Wouldn't it be better for you to use an Ansible role to run the installations instead of writing your own shell script?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://galaxy.ansible.com/ui/repo/published/dynatrace/oneagent/content/role/oneagent/" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/dynatrace/oneagent/content/role/oneagent/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As for the token, you can define its validity within Dynatrace management.&lt;/P&gt;&lt;P&gt;Similarly, you can configure how often and to which version the OneAgent upgrade should be performed in the Settings → Updates → OneAgent updates section.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 08:43:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Best-Practices-for-Automating-Dynatrace-OneAgent-Deployment-via/m-p/279488#M36751</guid>
      <dc:creator>lubrman</dc:creator>
      <dc:date>2025-06-16T08:43:31Z</dc:date>
    </item>
  </channel>
</rss>

