You can install cAPI on supported Linux Platform. Console mode provides a text-based method for invoking the installation program. This mode is intended for Linux platforms with non-graphics consoles.
Prerequisites
Fulfill the following prerequisites before starting the installation:
- Ensure Event store is installed already.
- Ensure that minimum 3 node elastic search cluster is already installed.
- Ensure java version 1.8+ is already installed.
- Ensure bash and curl utility are already installed and installation server is compatible with "sed" command.
- Create Client Id and Shared Secret in VIDM for cAPI.
Refer, cAPI-vIDM Configuration and Authentication for more information.
-
Copy the "cAPI-install.bin " installer to any directory on the server where cAPI will be installed.
- Ensure that you have a login with root privileges to run the installer.
- Download the installation file from support page, and place it in a temporary location on the server.
Procedure
- Login to the server as root.
Logged in with root privileges.
- Type bash cAPI-install.bin –i console to run the installer in the console-based installer mode, press Enter.
Installer introduction appears.
- Press Enter to continue.
Installer Prompts to choose an install folder.
- Press Enter to continue.
This is the location where cAPI will be installed. Default is /opt/cAPI.
- If install folder already contains cAPI folder, choose from the following options
- Enter 1 to override the already installed folder.
or
- Enter 2 to choose a new installation directory.
or
- Enter 3 to cancel the installation.
- Installer prompts for cAPI configuration.
- Enter cAPI ADMIN port. Default port 9901.
- Enter cAPI Listener port. Default port 10000.
- Press Enter to continue.
Note: The port number must be between 1 to 65535. Otherwise, installer throws validation error and redirects to this step to re-enter the port details.
- Installer prompts to enter the cAPI configuration.
- Enter VIDM HOST NAME. Default is identitymanager.eng.vmware.com.
- Enter the VIDM IP ADDRESS. Default is 127.0.0.1
- Enter the VIDM PORT. Default port is 443.
- Press Enter to continue.
Note: If the IP address is wrong or the Port is invalid, installer throws validation error and redirects to the beginning of this step to enter the configurations.
- Choose the Elastic Search https Configuration when installer prompts. Default is http.
- Choose 1 for https and Press Enter to continue.
or
- Choose 2 for http and Press Enter to continue.
Note: 1. For https communication in Elastic search ensure that "esdb.crt" file is available in "/opt/ssl". For configuring https refer
Enabling HTTPS in Elastic Search.
Note: 2. The certificate file esdb.crt should contain certificates from all elastic search instances in a cluster.
- Installer prompts for Elastic Search configurations.
- Enter the Elastic search IP/fqdn/hostname in the format <IP-ADDRESS/FQDN/HOSTNAME>:<PORT>. In case of cluster, enter the comma separated IP/fqdn/hostname address.
- Enter Elastic Search User name and press Enter to continue.
To enable ES authentication, refer Elasticsearch Authentication.
Note: Installer throws validation error and redirects to the beginning of this step to enter the configurations if any input fields are left blank.
- Enter the Elastic Search Password when installer prompts, press Enter to continue.
Installer prompts for password confirmation.
- Press Enter to continue.
If the passwords are mismatched, installer throws a validation error and redirects to re-enter the password at step 10.
- Enter EventStore configuration when installer prompts.
- Enter Event Store IP Address. Default is 127.0.0.1.
- Enter Event Store Port. Default is 8080.
- Press Enter to continue.
Note: If the IP address is wrong or the Port is invalid, installer throws validation error and redirects to the beginning of this step to enter the configurations.
- Installer prompts to enter the Client Registration configuration.
- Provide Client ID. Default is capi_client.
- Provide Secret and press Enter to continue.
Note:
Client ID and Secret is a one-time configuration of an Oauth2 client that supports password grant on VIDM.
Refer cAPI-vIDM Configuration and Authentication for configuration details.
Installer throws an error and redirects to the beginning of this step to enter the configurations if any input filed left blank.
- Press Enter to continue the installation when installer shows the pre-install summary.
Installation continues.
- Press Enter to exit the installer when installer shows the installation is completed.
cAPI is installed.