This Ansible role installs and configures the Dynatrace WebServer Agent of the Dynatrace AppMon solution for the Apache HTTP server.
Note: you will have to restart the web server after placing the agent.
The role is available via:
This roles depends on the following roles:
This role downloads and installs the most recent version of the Dynatrace WebServer Agent package from http://downloads.dynatracesaas.com and integrates the agent with the Apache HTTP server. The default download link can be overridden via the dynatrace_wsagent_linux_installer_file_url
attribute. Alternatively, you can place the installer artifact as dynatrace-wsagent.tar
in the role's files
directory from where it will be picked up during the installation. Please refer to defaults/main.yml
for a list of supported attributes.
As defined in defaults/main.yml
:
Name | Default | Description |
---|---|---|
dynatrace_apache_agent_linux_agent_path | /opt/dynatrace/agent/lib64/libdtagent.so | The path to the Agent library. |
dynatrace_apache_agent_linux_apache_config_path | /etc/apache2/apache2.conf | The path to the Apache HTTP server's config file. |
dynatrace_apache_agent_name | apache-dtwsagent | The name the Web Server Agent as it appears in Dynatrace. |
dynatrace_apache_agent_state | present | Whether the Agent shall be present or absent . |
- hosts: all
roles:
- role: Dynatrace.Dynatrace-Apache-HTTPD-Agent
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) 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.