An Ansible role for automated deployments of a Dynatrace AppMon License.
This Ansible role installs a Dynatrace AppMon License of the Dynatrace AppMon solution.
The role is available via:
Place the Dynatrace AppMon License as dynatrace-license.key
in the role's files
directory from where it will be picked up during the installation. Alternatively, you can make the Dynatrace AppMon License available at an HTTP, HTTPS or FTP resource and point the installation script to the right location via the dynatrace_license_file_url
attribute, see below.
As defined in defaults/main.yml
:
Name | Default | Description |
---|---|---|
dynatrace_license_linux_dynatrace_install_dir | /opt/dynatrace | The directory that contains an installation of the Dynatrace AppMon Server. |
dynatrace_license_linux_license_owner | dynatrace | The file owner of the license file after deployment. |
dynatrace_license_linux_license_group | dynatrace | The file group of the license file after deployment. |
dynatrace_license_file_name | dynatrace-license.key | The file name of the Dynatrace AppMon License in the role's files directory. |
dynatrace_license_file_url | http://localhost/dynatrace/dynatrace-license.key | A HTTP, HTTPS or FTP URL to the Dynatrace AppMon License in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path. |
dynatrace_license_role_name | Dynatrace.Dynatrace-License | The actual name of this role in an Ansible Playbook's roles directory. |
- hosts: all
roles:
- role: Dynatrace.Dynatrace-License
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.