voxpupuli/puppet-appd_db_agent

Name: puppet-appd_db_agent

Owner: Vox Pupuli

Description: Puppet module for installing and configuring AppDynamics Database Agent

Created: 2018-03-02 17:06:17.0

Updated: 2018-05-23 06:14:24.0

Pushed: 2018-05-23 06:14:22.0

Homepage: null

Size: 102

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

puppet/appd_db_agent

License Build Status Puppet Forge Puppet Forge - downloads Puppet Forge - scores

Table of Contents
  1. Description
  2. Setup - The basics of getting started with appd_db_agent
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module
Description

This module installs, configures and provides a systemd based service for the AppDynamics Database Agent. It has been developed and tested with dbagent version 4.4.1.229 on CentOS 7 with Puppet 4.10. It should also work on Puppet 5 and on other RedHat Enterprise 7 clones.

Configuration is all done via the systemd service and environment file it loads from /etc/sysconfig/appd_db_agent. No changes are made to controller-info.xml.

Setup
What appd_db_agent affects

The module downloads and installs the database agent under /opt/appdynamics. It creates a systemd unit file for the agent and starts the service.

The agent depends on java being installed and this module will install by including puppetlabs/java.

Setup Requirements

AppDynamics doesn't provide an anonymous download link for the agent. You will have to provide the dbagent zip yourself. You have several choices for hosting it yourself. You could make it available over http via an artifact repository such as Artifactory or Nexus. Or you could make it available using your puppetserver's fileserver by placing the zip in your site module and specifying a puppet:/// url as the source parameter.

If using an onsite AppDynamics controller, you will have to install the required license on your controller before the agent will work.

Beginning with appd_db_agent

The module has a single public class. There are several optional parameters, but 5 that are required. You will need to know

You should also consider how much heap space to allocate to the JVM running the agent. This module defaults the parameter java_heap_size to just 256MB. AppDynamic's recommend 1GB + 512MB for each monitored database.

Usage

A minimal example where the agent zip is stored in a site module and a locally installed controller is used.

s { 'appd_db_agent':
urce                   => 'puppet:///modules/site/appdynamics/dbagent-4.4.1.229.zip',
rsion                  => '4.4.1.229',
ntroller_host_name     => 'appdynamics.example.com',
ntroller_port          => 8090,
ent_account_access_key => 'secret',

A more complete example using Artifactory as the source for the zip. Communications with the hosted SAAS is encrypted and via a squid proxy.

s { 'appd_db_agent':
urce                   => 'https://artifactory.example.com/artifactory/infra/org/appdynamics/dbagent/dbagent-4.4.1.229.zip',
ecksum                 => artifactory_sha1('https://artifactory.example.com/artifactory/api/storage/infra/org/appdynamics/dbagent/dbagent-4.4.1.229.zip'),
ecksum_type            => 'sha1',
rsion                  => '4.4.1.229',
ntroller_host_name     => 'exampleorg.saas.appdynamics.com',
ntroller_port          => 443,
ntroller_ssl_enabled   => true,
ent_account_access_key => 'secret',
oxy_host               => 'squid.example.com',
oxy_port               => 3128,
va_heap_size           => '4g',

Reference

Puppet Strings REFERENCE.md

Limitations
Development

This module is maintained by Vox Pupuli. It was written by Alex Fisher and is licensed under the Apache-2.0 License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.