Deploying DxOdyssey Using an Unattended Installation Script (PowerShell)
- DxOdyssey 19.5 and newer
- PowerShell 5+ on Windows
- PowerShell Core 6+ on Linux
Installation and deployment of DxOdyssey using an unattended installation script.
The script requires the following paramaters:
-config – The path to the dxo.ini file that contains the configuration options.
-deploy – The deployment option, which are as follows:
- First run on the first server. This will install DxOdyssey, activate the license and create a One Time Pass Key (OTPK).
- Additional server installations. This will install DxOdyssey, activate the license and join an existing gateway server (the server in deployment 1).
- Last run on the final server. This will install DxOdyssey, activate the license, join an existing gateway server and run the full deployment script.
- Single node deployment. The full script will run without creating an OTPK or joining any additional gateways.
- Copy the dxo_deploy_*.ps1 script and the example dxo.ini file to the first server in the gateway group.
- Download the latest copy of the DxOdyssey installation file to the first server.
- Open the dxo.ini file for edit.
- Set the “path=” value to the path and filename of the DxOdyssey installation file.
- Set the “license=” value to a valid DxOdyssey license key.
- Set the “otpk_ttl=” value to the desired duration of the One Time Pass Key (OTPK) in hours. The OTPK is used to join additional servers to the gateway group. Once the OTPK has expired, additional servers will not be allowed to join the gateway group until another OTPK has been set.
- Set the remaining deployment options (clients, groups, tunnels, etc) using the examples in the dxo.ini config file.
- Save the dxo.ini file.
Note: If using deployment option 4 then the script can be run now using “-deploy 4” and then skip the remaining steps.
- Run the dxo_deploy_*.ps1 script on the first server with the path to the dxo.ini file and the “-deploy 1” option (“./dxo_deploy_*.ps1 -config ./dxo.ini -deploy 1”).
- The first time that deployment option 1 is used, it will create an OTPK and write it back to the dxo.ini file.
- Copy the dxo_deploy_*.ps1, dxo.ini and the DxOdyssey installation files to the remaining servers in the gateway group.
- Run the dxo_deploy_*.ps1 script on all additional servers using the “-deploy 2” option.
- Run the dxo_deploy_*.ps1 script on the final server using the “-deploy 3” option. This will fully deploy all options specified in the dxo.ini file.