Installing silently
In a silent installation, you run the installation program from a command line. When you execute a silent installation, you specify an options file, which specifies the selections you would normally make during an interactive installation.
Warning
TrueSight Vulnerability Management is delivered to customers bundled as a set of Docker Containers. The Docker Containers and the software installed on them should not be taken out of TrueSight Vulnerability Management or used separately from TrueSight Vulnerability Management. Installing additional third-party software or updating existing software packages in the Docker Containers is not permitted, unless explicitly authorized by BMC Software.
This topic contains the following sections:
Before you begin
- Ensure that one of the following endpoints managers must be installed and running which you want to access while running the TrueSight Vulnerability Management application.
TrueSight Server Automation
- TrueSight Network Automation
- Microsoft System Center Configuration Manager (SCCM)
Ensure that you log on as a root user to the computers on which you want to install the database, Elasticsearch, or application. Installation with a non-root user is not supported.
- To avoid potential permission-related issues in accessing the files that are needed to start or stop services on Linux systems, ensure that the user file creation mask (also called umask) for a Linux user is set to 022.
To install database, Elasticsearch, and application
Log on to a computer which has Python installed and on which you want to install either database, Elasticsearch, or application.
Create a temporary directory, for example, /opt/tsvmDownload.
- Copy the following downloaded files to the /opt/tsvmDownload directory:
- TSVM<versionNo>-SM-LIN64.zip
- TSVM<versionNo>-APP-LIN64.zip
- TSVM<versionNo>-DB-LIN64.zip
- TSVM<versionNo>-ES-LIN64.zip
Extract the TSVM<versionNo>-SM-LIN64.zip file to the /opt/tsvmDownload directory.
Navigate to the /opt/tsvmDownload/truesight-sm directory, and run the following command:
python install.py
You are prompted for the installation mode, as follows:
- 1. Create an input file for the Deployment type to be installed: Allows you to create the inputs file that you can use as an input to the installation process.
- 2. Install Deployment type: Allows you to use an existing inputs file for the installation process or provide inputs while installing.
- Enter 1 to indicate that you want to create the inputs file and press Enter.
- Follow the steps as mentioned in Creating the inputs file.
- Install the database silently.
- Install Elasticsearch silently.
- Install the application silently.
To perform silent installation of the database
Note
You don't need to perform this procedure if you have an existing instance of PostgreSQL database installed in your environment. Provide database details of the existing instance while creating the inputs file for the application and then configure the database server so that the application can access the database.
Log on to the computer where you want to install the database.
- Obtain the inputs file that you have already created.
Create an options file (for example, installer_silent.yml) for silent installation with the following contents:
#Deployment type must be from 1:Application, 2:Database or 3:ElasticSearch deployment_type: 2 #Installation directory path default is /opt/bmc/truesight install_dir: <DatabaseInstallationDirectory> input_file: <inputsFilePath>/inputs_file.yml
Sample options file#Deployment type must be from 1:Application, 2:Database or 3:ElasticSearch deployment_type: 2 #Installation directory path default is /opt/bmc/truesight install_dir: /opt/bmc/truesight input_file: /opt/bmc/truesight/inputs_file.yml
Create a temporary directory, for example, /opt/tsvmInstall.
Copy the TSVM<versionNo>-SM-LIN64.zip and TSVM<versionNo>-DB-LIN64.zip files, which you have downloaded from EPD, to the /opt/tsvmInstall directory.
- Extract the TSVM<versionNo>-SM-LIN64.zip file to the /opt/tsvmInstall directory.
Navigate to the /opt/tsvmInstall/truesight-sm directory and run the following command to start the installation process:
python install.py --silent --silent-install-input-file /opt/bmc/truesight/installer_silent.yml
Once the installation process is complete, verify that the database services are running using the following command:
python truesight-sm.py status --deployment database
To perform silent installation of Elasticsearch
Log on to the computer where you want to install Elasticsearch.
- Obtain the inputs file that you have already created.
Create an options file (for example, installer_silent.yml) for silent installation with the following contents:
#Deployment type must be from 1:Application, 2:Database or 3:ElasticSearch deployment_type: 3 #Installation directory path default is /opt/bmc/truesight install_dir: <DatabaseInstallationDirectory> input_file: <inputsFilePath>/inputs_file.yml
Sample options file#Deployment type must be from 1:Application, 2:Database or 3:ElasticSearch deployment_type: 3 #Installation directory path default is /opt/bmc/truesight install_dir: /opt/bmc/truesight input_file: /opt/bmc/truesight/inputs_file.yml
- Create a temporary directory, for example, /opt/tsvmInstall.
Copy the TSVM<versionNo>-SM-LIN64.zip and TSVM<versionNo>-ES-LIN64.zip files, which you have downloaded from EPD, to the /opt/tsvmInstall directory.
- Extract the TSVM<versionNo>-SM-LIN64.zip file to the /opt/tsvmInstall directory.
Navigate to the /opt/tsvmInstall/truesight-sm directory and run the following command to start the installation process:
python install.py --silent --silent-install-input-file /opt/bmc/truesight/installer_silent.yml
Once the installation process is complete, verify that the Elasticsearch (DCA Index) services are running using the following command:
python truesight-sm.py status --deployment elasticsearch
- (Optional) If you want to configure cluster of Elasticsearch servers, install Elasticsearch on multiple servers. You can configure the Elasticsearch cluster after installing the application as well.
To perform silent installation of the application
Log on to the computer where you want to install the application.
- Obtain the inputs file that you have already created.
Create an options file (for example, installer_silent.yml) for silent installation with the following contents:
#Deployment type must be from 1:Application, 2:Database or 3:ElasticSearch deployment_type: 1 #Installation directory path default is /opt/bmc/truesight install_dir: <DatabaseInstallationDirectory> input_file: <inputsFilePath>/inputs_file.yml
Sample options file#Deployment type must be from 1:Application, 2:Database or 3:ElasticSearch deployment_type: 1 #Installation directory path default is /opt/bmc/truesight install_dir: /opt/bmc/truesight input_file: /opt/bmc/truesight/inputs_file.yml
- Create a temporary directory, for example, /opt/tsvmInstall.
Copy the TSVM<versionNo>-SM-LIN64.zip and TSVM<versionNo>-APP-LIN64.zip files, which you have downloaded from EPD, to the /opt/tsvmInstall directory.
- Extract the TSVM<versionNo>-SM-LIN64.zip file to the /opt/tsvmInstall directory.
Navigate to the /opt/tsvmInstall/truesight-sm directory and run the following command to start the installation process:
python install.py --silent --silent-install-input-file /opt/bmc/truesight/installer_silent.yml
Once the installation process is complete, verify that the application services are running using the following command:
python truesight-sm.py status --deployment application
- (optional) If you want to create application clusters, repeat steps 1 to 8 to install the application on multiple computers. After you install the application on multiple computers, configure the cluster.
Configuring the existing database instance
If you have an existing instance of PostgreSQL database installed in your environment, you need to modify the pg_hba.conf file so that the application computer can access the database server.
To modify the pg_hba.conf file
- On the database server, open the pg_hba.conf file with a text editor.
- Look for the entries similar to the following:
host all all 0.0.0.0/0 auth-method
host all all ::/0 auth-method - In the 4th column, replace 0.0.0.0/0 with your Docker network/mask.
- Replace the existing auth-method with md5.
- Save the pg_hba.conf file.
- Restart the database server.
Troubleshooting installation issues
If you face issues during installation, see Troubleshooting installation issues .
Where to go from here
Depending on your requirements, set up additional connectors or start using the product.
Comments
Log in or register to comment.