Giter VIP home page Giter VIP logo

dynatrace-appmon-webserver-agent-ansible's Introduction

Dynatrace-WebServer-Agent-Ansible

This Ansible role installs and configures the Dynatrace AppMon WebServer Agent of the Dynatrace AppMon solution.

Note: this role merely makes the Dynatrace AppMon WebServer Agent available, but it does not configure your web server to actually load it. See the Dynatrace-Apache-HTTPServer-Agent-Ansible role for an example that does.

Download

The role is available via:

Requirements

This role downloads and installs the most recent version of the Dynatrace AppMon Web Server Agent from http://downloads.dynatracesaas.com. Alternatively, you can place the installer artifact as dynatrace-wsagent-linux-x64.tar in the role's files directory from where it will be picked up during the installation. The default file name and URL can be overridden via the dynatrace_wsagent_linux_installer_file_name and dynatrace_wsagent_linux_installer_file_url attributes, respectively. Please refer to defaults/main.yml for a list of supported attributes.

Role Variables

As defined in defaults/main.yml:

Name Default Description
dynatrace_wsagent_linux_install_dir /opt The Dynatrace AppMon Web Server Agent will be installed into the directory $dynatrace_wsagent_linux_install_dir/dynatrace-$major-$minor-$rev, where $major, $minor and $rev are given by the installer. A symbolic link to the actual installation directory will be created in $dynatrace_wsagent_linux_install_dir/dynatrace.
dynatrace_wsagent_linux_installer_file_name dynatrace-wsagent-7.0.0.2449-linux-x86-64.tar The file name of the Dynatrace AppMon Web Server Agent installer in the role's files directory.
dynatrace_wsagent_linux_installer_file_url https://files.dynatrace.com/downloads/OnPrem/dynaTrace/7.0/7.0.0.2449/dynatrace-wsagent-7.0.0.2449-linux-x86-64.tar A HTTP, HTTPS or FTP URL to the Dynatrace AppMon Web Server Agent installer in the form (http|https|ftp)://[user[:pass]]@host.domain[:port]/path.
dynatrace_wsagent_name dtwsagent The name the Web Server Agent as it appears in Dynatrace AppMon.
dynatrace_wsagent_collector_hostname localhost The location of the Collector the Web Server Agent shall connect to.
dynatrace_wsagent_collector_port 9998 The port on the Collector the Web Server Agent shall connect to.
dynatrace_wsagent_owner dynatrace The system user that owns the Dynatrace AppMon installation.
dynatrace_wsagent_group dynatrace The system user's group that owns the Dynatrace AppMon installation.
dynatrace_wsagent_role_name Dynatrace.Dynatrace-WebServer-Agent The actual name of this role in an Ansible Playbook's roles directory.

Example Playbook

- hosts: all
  roles:
    - role: Dynatrace.Dynatrace-WebServer-Agent

Testing

We use Test Kitchen to automatically test our automated deployments with Serverspec and RSpec:

  1. Install Test Kitchen and its dependencies from within the project's directory:
gem install bundler
bundle install
  1. Run all tests
kitchen test

By default, we run our tests inside Docker containers as this considerably speeds up testing time (see .kitchen.yml).

Additional Resources

Blogs

Presentations

Problems? Questions? Suggestions?

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.

License

Licensed under the MIT License. See the LICENSE file for details. analytics

dynatrace-appmon-webserver-agent-ansible's People

Contributors

dynapozieblo avatar marcinzejer avatar metmajer avatar nullfieldio avatar piotrmejer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vuntladivya

dynatrace-appmon-webserver-agent-ansible's Issues

Integrate checking of md5 sum for public download links

Add option to download an md5 file and, if one is defined, check the checksum via the get_url module's checksum parameter in tasks/install-dynatrace-wsagent-linux.yml (since Ansible 2.0).

Our public downloads on http://downloads.dynatracesaas.com offer a file $installer.md5 for each $installer. This should be reflected by default in variables dynatrace_wsagent_linux_installer_md5_file_name and dynatrace_wsagent_linux_installer_md5_file_url in defaults/main.yml.

Is not working in ansible 2.9.10

  • name: Change ownership of the installation directory if it had to be created
    file:
    path: "{{ dynatrace_wsagent_linux_install_dir }}"
    owner: "{{ dynatrace_wsagent_owner }}"
    group: "{{ dynatrace_wsagent_group }}"
    when: dynatrace_wsagent_create_install_dir_result | changed
    become: yes
    The syntax
    when: dynatrace_wsagent_create_install_dir_result | changed
    FAILED! => {"msg": "The conditional check 'dynatrace_wsagent_create_install_dir_result | changed' failed. The error was: template error while templating string: no filter named 'changed'. String: {% if dynatrace_wsagent_create_install_dir_result | changed %} True {% else %} False {% endif %}

If I use
when: dynatrace_wsagent_create_install_dir_result is changed
This work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.