# One Agent installation Automation

**URL:** <https://community.dynatrace.com/t/one-agent-installation-automation/21712>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [August 28, 2019, 10:26am UTC](https://community.dynatrace.com/t/one-agent-installation-automation/21712 "2019-08-28T10:26:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 28, 2019, 10:26am UTC](https://community.dynatrace.com/t/one-agent-installation-automation/21712/1 "2019-08-28T10:26:03Z")

</div>

Hello,

We want to set up an automation procedure for installing One agent.

The only problem here is Host Group.

Does anyone have ideas on how we can automate and organize Host Group values ?

Thank you

---

<div class="post-metadata">

**Author:** ![Radu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radu/32/23351_2.png) [@Radu](https://community.dynatrace.com/u/Radu)\
**Post date:** [August 28, 2019, 10:46am UTC](https://community.dynatrace.com/t/one-agent-installation-automation/21712/2 "2019-08-28T10:46:34Z")

</div>

Hi

Depending on your choice of automation (e.g. script, Ansible, Chef, Puppet, etc.), these can be taken from environment variables or files. Since for automation the OneAgent installation requires only one command, the host group is passed during that command so it can be scripted to take that variable from any place.

Without more details about how you plan to automate the deployment, it’s difficult to recommend something.

Best regards,

Radu

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [August 28, 2019, 4:11pm UTC](https://community.dynatrace.com/t/one-agent-installation-automation/21712/3 "2019-08-28T16:11:16Z")

</div>

Keep in mind that HostGroup assignment can also be modified after OneAgent installation. This might provide a more flexible option for your deployment needs. [Organize your environment using host groups — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/hosts/configuration/organize-your-environment-using-host-groups/)

---

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 29, 2019, 8:33am UTC](https://community.dynatrace.com/t/one-agent-installation-automation/21712/4 "2019-08-29T08:33:19Z")

</div>

Thanks for your answer

---

<div class="post-metadata">

**Author:** ![service\_apms](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@service\_apms](https://community.dynatrace.com/u/service_apms)\
**Post date:** [August 29, 2019, 8:33am UTC](https://community.dynatrace.com/t/one-agent-installation-automation/21712/5 "2019-08-29T08:33:23Z")

</div>

Thanks for your answer
