Every deployment is different, so this task doesn't lend itself to one all-inclusive Puppet script maintained by AppDynamics. However, the attached sample script can help you get started on your own Puppet module.
This sample script is intended for a Linux/Tomcat deployment. The script is relatively straightforward, and is intended to serve as a rough framework for building a script appropriate for your specific environment. Definitely edit it as appropriate for your environment and test out your config!
If you haven't used Puppet before, we recommend running through the first two sections of the Puppet Quick Start Guide.
java_agent.zip
file needs to be unzipped into the prospect's Puppet modules directory (/etc/puppet/environments/production/modules/
by default). /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. /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 init.pp
you see the list of variables used for the deployment. You need to set these as appropriate for the target system. catalina.sh
, you may want to inherit that template file or you may need to get more creative. A simple line replace should suffice.