Add nodes to ThoughtSpot using Ansible on clusters that use RHEL

If your organization requires that privilege escalation take place through an external tool that integrates with Ansible, follow the steps in this article to add nodes to your cluster.

Before adding nodes to the cluster, ensure that the system settings are correctly configured.

Add nodes to the cluster

  1. Rename node_add_hosts.sample to node_add_hosts.yaml.

  2. Update the Ansible vars in node_add_hosts.yaml with your own specific values. See Sample Ansible vars.

  3. Run the ansible-playbook. This adds nodes to the cluster. Run the following command on any cluster node:

    ansible-playbook -i node_add_hosts.yaml ts-node-add.yaml

    If privilege escalation requires a password, add the -K option to the ansible-playbook command.

  4. If there is a failure at any point, fix the failure and rerun the ansible-playbook command. Bypass the completed steps using the --start-at-task option, specifying the task at which to start.

Sample Ansible vars

This is the definition of the node_add_hosts.sample file that is present in your Ansible tarball. You must replace anything in this file within <> with your own specific information.

      # List of IPs of the nodes in the cluster>
    ssh_user: <ts_service_user>
    ansible_ssh_user: <ts_service_user>
    username: <ts_service_user>
    groupname: <ts_service_group>
    env: {}
    ssh_private_key: <Private key for ssh>
    tarball_location:<Release tarball complete path >  # Location of the tarball
    ramdisk_size: <size of ramdisk for falcon> # The default is 50619136k (50Gb)
    # Thoughtspot vars. Do not modify
     release_location: /export/releases/root/
     pgversion: 11
     layout_file: /tmp/hadoop_config.json
     no_sudo: 1
     run_setup_during_install: 1
    minimal_sudo_install: 1
    offline: 1

Was this page helpful?