Prepare the Classic Controller
To prepare classic Controller for installing Virtual Appliance services, complete the following steps:
Configure the Standalone Controller in Splunk AppDynamics On-Premises
Complete post-installation tasks for the Standalone Controller after installing AppDynamics Services.
- Log in to the Controller database by using the following command:
CODE
<controller-home>/bin/controller.sh login-dbNote: You must enter the root database password to connect to the MySQL database. - Retrieve the configured database credentials from the primary node:
CODE
# Run on the VA primary node helm secrets decrypt /var/appd/config/secrets.yaml.encrypted | yq .hybrid.mysql.dbUser helm secrets decrypt /var/appd/config/secrets.yaml.encrypted | yq .hybrid.mysql.dbPasswordNote: Thehybrid.mysql.dbUservalue is for Secure Application only. Do not change it from the default value:secureapp. - Create the user and grant access.
Supply the
<dbUser>value from the previous steps. Replace<dbUser>and<dbPassword>with the values you retrieved:CODE# Run in the database shell; substitute the exact decrypted values DROP USER IF EXISTS '<DB_USER>'@'%'; CREATE USER '<DB_USER>'@'%' IDENTIFIED BY '<DB_PASSWORD>' REQUIRE SSL; GRANT USAGE ON *.* TO '<DB_USER>'@'%'; GRANT SELECT, UPDATE ON controller.* TO '<DB_USER>'@'%';Note: Do not paste real passwords into shell history or tickets. Use your approved secret-handling procedure. - (Optional) Generate the hybrid configuration file to prevent multiple Controller restarts.
- Access the Enterprise Console UI.
- Select the platform.
- Go to the Configuration tab.
- Navigate to Controller Settings > Appserver Configurations > JVM Options > JVM Config.
- In the JVM Config field, append the following content:
Note: Replace
<DNS_DOMAIN>with the value that you configured asdnsDomainin /var/appd/config/globals.yaml.gotmpl.CODE-Dappdynamics.auth.service.hosted.zone=-tnt-authn.<DNS_DOMAIN> -Dappdynamics.auth.service.port=443 -Dappdynamics.auth.service.ssl.access.enabled=true -Dappdynamics.auth.service.token.generation.enabled=true -Dappdynamics.controller.authentication.resource.accessible=true -Dappdynamics.auth.client.token.validation.enabled=true -Dappdynamics.mds.rbac.rest.api.enabled=true -Dappdynamics.rbac.internal.resource=true - Click Save.
Note: Saving JVM configuration restarts the Controller. Coordinate this with the later hybrid bootstrap so you do not cause unnecessary restarts.