Overview
This article describes how to install the JetPatch connector using Ansible (AWX) on Linux endpoints.
The process involves preparing a deployment script with the correct server configuration and executing it across multiple machines using Ansible playbooks.
Deploying the Connector on the Endpoint Itself
Prepare The Script
There are two ways to download the connector to an endpoint:
Method 1: Download from the Internet
Download the connector from the internet using the scripts below:
- For CentOS, RHEL, Ubuntu, OracleLinux, SUSE, AmazonLinux (Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh)
Method 2: Download from Mounted Disk
First, download the connector from a mounted disk accessible to all endpoints:
- Download the connector to a mounted disk
- Check that all your machines can access the mounted disk
- For CentOS, RHEL, Ubuntu, OracleLinux, SLES, AmazonLinux (Ansible-DeployJetPatchConnectorFromLocalOnLinux.sh)
| Important: In both ways, you need to Configure the CoreServerURL Parameter with your JetPatch Server address. |
Configure CoreServerURL Parameter
For versions before 5.0:
| coreserverurl="https://Your_JetPatch_Server_IP_or_Hostname/vmanage-server/" |
Post 5.0 (assuming default port 8443):
| coreserverurl="https://Your_JetPatch_Server_IP_:PORT" |
Run The Script On Remote Machines
Step 1: Upload the Script
Upload the script you just prepared in Ansible.
For this article, we assume the script is located in:
| /home/jetpatch/scripts/Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh |
Step 2: Update The Hosts File (Optional)
If you're starting, then you need to create a group in your hosts file that we will run the setup script on. For this article, my group is my-servers.
Step 3: Create the Playbook
Now we need to create the Ansible playbook that will transfer that script to the remote server(s) and execute it. This article refers to it as: jetpatchconnector.yml.
|
- hosts: my-servers sudo: true tasks: - script: /home/jetpatch/scripts/Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh |
Step 4: Execute the Script
Run the following command to execute your script.
You may or may not need to swap out the $USER variable.
| ansible-playbook setup.yml --user=$USER |
| Important: The user you connect with will need passwordless sudo privileges. |
Comments
0 comments
Article is closed for comments.