Download page Ansible Configuration for Node.js Agent.
Ansible Configuration for Node.js Agent
Note
Ensure that you are using Node.js version 14.x-18.x.
Ensure that you restart the agent after installation.
The following is an example of an AnsibleĀ® role to install Node.js Agent on Linux:
---
- hosts: linux
tasks:
- include_role:
name: appdynamics.agents.node
vars:
agent_version: latest # [latest or provide the specific agent version]
agent_type: node
agent_action: upgrade # can be upgrade/install/rollback, default upgrade when unspecified
controller_account_access_key: "123key" # Please add this to your Vault
controller_host_name: "fieldlab.saas.appdynamics.com" # Your Cisco AppDynamics controller
controller_account_name: "customer1" # Please add this to your Vault
enable_ssl: "false"
controller_port: "8090"
YML
Ensure that you restart the agent after installation using the following command:
node -r appd-config.js app.js
CODE
Node.js Agent Variables
Variable
Description
Default
Possible Values
Required
agent_version
Node.js agent version to be installed.
latest
latest, [agent version in x.x.x.x format]
No
node_agent_enableGraphQL
Use this if your application uses graphql.
false
true, false
No
node_agent_debug_logging
To run the application with debug logging enabled.