Delete ThoughtSpot clusters 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 delete your cluster.

Before deleting the cluster, ensure that the system settings are correctly configured.

Upgrading the cluster

  1. Rename cluster_hosts.sample to cluster_hosts.yaml.

  2. Update the ansible vars in cluster_hosts.yaml with your own specific values. See Sample ansible vars.

  3. Run the ansible-playbook. This upgrades the cluster. Run the following command on any cluster node:

    ansible-playbook -i cluster_hosts.yaml cluster_delete.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 cluster_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>
    keep_release: False  # Set to true if you do not want to delete the release.
    keep_dr_mirror: False
    DATA_DRIVE_SCRIPT: "/usr/local/scaligent/release/build-out/production/install/select_data_drives_tool.par"

Was this page helpful?