Overview
This article explains how to deploy the JetPatch Connector on endpoints using Puppet automation.
It covers preparing installation scripts, configuring server URLs, and executing the deployment through Puppet manifests.
Deploying the Connector on the Endpoint Itself
Prepare The Script
Let's create the script on our Chef server because it needs to be local.
The connector needs to be downloaded to the machines.
For that, 2 ways are possible:
Option 1: Download the connector from the internet using those scripts:
- For CentOS, RHEL, OracleLinux, SUSE, AmazonLinux (Puppet-DeployJetPatchConnectorFromInternetOnLinux.sh)
- For Ubuntu (Puppet-DeployJetPatchConnectorFromInternetOnDebian.sh)
Download the connector from a mounted disk accessible to all the machines.
- In this case, you will first have to download the connector to your mounted disk.
- Check that all your machines can access the mounted disk.
Use the following scripts for this option:
- For CentOS, RHEL, OracleLinux, SUSE, AmazonLinux (Puppet-DeployJetPatchConnectorFromLocalOnLinux.sh)
- For Ubuntu (Puppet-DeployJetPatchConnectorFromLocalOnDebian.sh)
Configure CoreServerURL Parameter
In both ways, you need to configure the CoreServerURL Parameter with your JetPatch Server address.
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"Prerequisites:
- Create/Check the nodes group to apply the connector on multiple instances
- Create/Check file server mount point
Run The Script On Remote Machines
- First, put the script into your mount point configured directory so it is accessible via the puppet file server.
- In the example above, a file at
/etc/puppetlabs/modules/jetpatch/Pupper-script.shwould be available in manifests aspuppet:///modules/jetpatch/Puppet-script.sh.
- In the example above, a file at
- Now we need to create the puppet manifest that will transfer that script to the remote server(s) and execute it. For this article, we are calling it
jetpatchconnector.ppin the path/etc/puppetlabs/manifests - Copy the code below to jetpatchconnector.pp file:
file { "/tmp/Puppet-DeployJetPatchConnectorFromInternetOnLinux.sh":
source => "puppet:///modules/jetpatch/Puppet-DeployJetPatchConnectorFromInternetOnLinux.sh",
mode => 0755,
} ->
exec { "/tmp/Puppet-DeployJetPatchConnectorFromInternetOnLinux.sh": }3. Run the manifest, change "servers" with your group name:
bolt apply manifests/jetpatchconnector.pp --targets servers
Comments
0 comments
Article is closed for comments.