Deploying the Director Component on a Standalone Node

This documentation provides the steps needed to deploy ad-director as a standalone add-on.

Prerequisites

Ensure the following criteria are met:

  • You are using “Pulse 3.5.0 or higher” or “Pulse 3.4.3 or higher”.
  • You have not deployed the ad-director (Agents must be configured). If it’s already deployed, uninstall it using accelo deploy add-ons and unselect Director (Agents MUST be configured).
  • You have already configured the standalone node. If not, run accelo set standalone after the initial prompt to run accelo init.

Deploy ad-director as a Standalone add-on

Follow the steps listed below to successfully deploy ad-director as a standalone add-on.

  1. On the standalone node, run the following command to generate ad-director.yml if it doesn’t exist. If Director (Agents MUST be configured) is already deployed and ad-director.yml does exist under $AcceloHome/config/docker/addons on the node where it was previously deployed, copy it over to the same location i.e. $AcceloHome/config/docker/addons on the standalone node.
Bash
Copy

Open the file in a text editor and make changes to the value of the following fields:

  • ACTIONS_DB_URI: Set it to the value of the environment variable MONGO_URI, which by default, is encrypted.
  • ACTIONS_EXTERNAL_URL: Replace the value of localhost with the hostname of the core node.
  • NOTIFICATIONS_HOST: Set it to the node's hostname where ad-notifications is deployed. If done correctly, the following details appear on the screen.
Bash
Copy
  1. On the core node, backup $AcceloHome/config/acceldata_<cluster_name>.conf. Open the file in a text editor and navigate to the following section.
Bash
Copy

Make changes to the value of the following fields using a text editor:

  • uri: Change its value to the value of ACTIONS_DB_URI, which you have done in the previous step.
  • host: Change its value from ad-elastic to the host/hosts where Logsearch is deployed.

For the connection named fsanalytics, it's the host where FS Elastic is deployed.

  • readURL: In this field, replace the following details:
    • ad-vmselect with a hostname of the node where the core services are deployed.
    • 8481 with 19042.

Save your changes. If done correctly, the following details appear on the screen.

Bash
Copy

Repeat the above steps for all the cluster configuration files.

  1. Run the following command to push the configuration.
Bash
Copy
  1. On the core node, run the following command to generate ad-core.yml if it doesn’t exist already.
Bash
Copy

Open the file in a text editor and navigate to the following section.

Bash
Copy

Add the following environment variables under the section environment:

  • ACTIONS_IP: Set its value to the hostname of the node where you’ll deploy ad-director.
  • ACTIONS_PORT: Set its value to 19016.

Save your changes. If done correctly, the following details appear on the screen.

Bash
Copy
  1. On the standalone node where ad-notifications is deployed, run the following command to generate ad-notifications.yml if it doesn’t exist.
Bash
Copy

Open the file in a text editor and make changes to the value of the following fields.

  • DIRECTOR_HOST: Set it to the hostname of the node where the ad-director will be deployed.
  • DIRECTOR_PORT: Set it to 19016.

If done correctly, the following details appear on the screen.

Bash
Copy
  1. On the core node, navigate to $AcceloHome and run the following command.
Bash
Copy

It generates a tar file in $AcceloHome named work_dir2.tar.gz which needs to be copied over to $AcceloHome on the standalone node. One way to copy would be using scp or an NFS export.

  1. On the standalone node, navigate to $AcceloHome and run the following command.
Bash
Copy
  1. On the standalone node, run the following command and select Director (Agents MUST be configured).
Bash
Copy
  1. On the standalone node, deploy Playbooks. For details, see Deploy Playbooks.
  2. On the core node, run the following command.
Bash
Copy

When you run accelo reconfig cluster or accelo reconfig cluster -a to perform the following steps:

  1. On the core node, update the value of readURL in $AcceloHome/config/acceldata_<cluster_name>.conf.
  2. On the core node, run accelo admin database push-config -a.
  3. On the core node, navigate to $AcceloHome and run the following command.

tar -cvf work_dir2.tar.gz $(ls -d work/*/director) config/krb/security/krb5.conf

  1. Copy work_dir.tar.gz over to the standalone node.
  2. On the standalone node, navigate to $AcceloHome and run the following command. tar -xvf work_dir2.tar.gz
  3. On the standalone node, run accelo restart ad-director.

Ensure that you do not run accelo config actions notifications on the standalone node.

When you run accelo config actions notifications, need to perform the following steps:

  1. On the core node, navigate to $AcceloHome and run the following command.

tar -cvf work_dir2.tar.gz $(ls -d work/*/director) config/krb/security/krb5.conf

  1. Copy work_dir.tar.gz over to the standalone node.
  2. On the standalone node, navigate to $AcceloHome and run the following command. tar -xvf work_dir2.tar.gz.
  3. On the standalone node, run accelo restart ad-director.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard