This Ansible role installs a Dynatrace AppMon Plugin of the Dynatrace AppMon solution.
The role is available via:
Download a Dynatrace AppMon Update from community.dynatrace.com and place the artifact in the role's files
directory from where it will be picked up during the installation. Alternatively, you can make the Dynatrace AppMon Update available at an HTTP, HTTPS or FTP resource and point the installation script to the right location via the dynatrace_plugin_file_url
attribute, see below.
As defined in defaults/main.yml
:
Name | Default | Description |
---|---|---|
dynatrace_plugin_file_name | dynatrace-plugin.dtf | The file name of the Dynatrace AppMon Plugin in the role's files directory. |
dynatrace_plugin_file_url | http://localhost/dynatrace/dynatrace-plugin.dtf | A HTTP, HTTPS or FTP URL to the Dynatrace AppMon Plugin in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path. |
dynatrace_plugin_user_name | admin | The username of a Dynatrace AppMon user that has the Manage Plugin Bundles permission. |
dynatrace_plugin_user_password | admin | The password of a Dynatrace AppMon user that has the Manage Plugin Bundles permission. |
dynatrace_plugin_role_name | Dynatrace.Dynatrace-Plugin | The actual name of this role in an Ansible Playbook's roles directory. |
- hosts: all
roles:
- role: Dynatrace.Dynatrace-Plugin
We use Test Kitchen to automatically test our automated deployments with Serverspec and RSpec:
- Install Test Kitchen and its dependencies from within the project's directory:
gem install bundler
bundle install
- Run all tests
kitchen test
By default, we run our tests inside Docker containers as this considerably speeds up testing time (see .kitchen.yml
).
- How to Automate Enterprise Application Monitoring with Ansible
- How to Automate Enterprise Application Monitoring with Ansible - Part II
- Automated Deployments (of Dynatrace AppMon) with Ansible
- Test-Driven Infrastructure with Ansible, Test Kitchen, Serverspec and RSpec
This offering is Dynatrace Community Supported. Feel free to share any problems, questions and suggestions with your peers on the Dynatrace Community's Application Monitoring & UEM Forum.
Licensed under the MIT License. See the LICENSE file for details.