Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

Agent deployment using Puppet

Every deployment is different, so this task doesn't lend itself to one master Puppet script maintained by AppDynamics. However, here is a sample that can help you get started on your own Puppet module.

 

Environment and components

This sample script is intended for a Linux/Tomcat deployment. The script is relatively straightforward, and is intended to serve as a framework for building a script appropriate for your specific environment. However, this script is rough and built for a specific environment, so definitely edit as appropriate for the environment and test out your config! 

 

If you haven't used Puppet before, we recommend running through the first two sections of the quick start guide: https://docs.puppetlabs.com/pe/latest/quick_start.html.

 

Instructions for Use

The java_agent.zip file needs to be unzipped into the prospect's Puppet modules directory (/etc/puppet/environments/production/modules/ by default).

 

It contains 4 subdirectories:  manifests, templates, files, and tests:

  • /manifests contains the main Puppet script, init.pp
  • /templates contains the catalina.sh template file (see lines 236-238) for how the init.pp variables are inserted.  Common system variables you would use can be found here: https://docs.puppetlabs.com/learning/variables.html 
  • /files contains the AppServerAgent.zip- Replace this with the version of AppServerAgent.zip that you'd like to deploy
  • /tests is not used for this module

 

Within init.pp you see the list of variables used for the deployment. You need to set these as appropriate for the target system. For SAAS or other configurations, be sure to add the appropriate Java configuration properties to the command line.

 

If you already deploy a customized catalina.sh, you may want to inherit that template file or you may need to get more creative. A simple line replace should suffice.

Version history
Revision #:
3 of 3
Last update:
‎11-19-2018 12:54 PM
Updated by:
 
Labels (1)
Contributors


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.
0 Kudos