Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
curl 'https://download.sos-berlin.com/JobScheduler.2.6/js7_agent_unix.2.6.0.tar.gz' \ -o /tmp/js7_agent_unix.2.6.0.tar.gz curl 'https://download.sos-berlin.com/JobScheduler.2.6/js7-license.jar' \ -o /tmp/js7-license.jar ./js7_install_agent.sh \ --tarball=/tmp/js7_agent_unix.2.6.0.tar.gz \ --home=/opt/sos-berlin.com/js7/agent \ --data=/var/sos-berlin.com/js7/agent_4445 \ --controller-id=controller \ --agent-id=agent \ --http-port=localhost:4445 \ --https-port=batch.example.com:4445 \ --license-key=/home/sos/agent-deployment/example.pem \ --license-bin=/tmp/js7-license.jar \ --private-conf=/home/sos/agent-deployment/private.conf-template-agent \ --controller-primary-cert=/home/sos/agent-deployment/centostest-primary.crt \ --controller-secondary-cert=/home/sos/agent-deployment/centostest-secondary.crt \ --director-primary-cert=/home/sos/agent-deployment/centostest-primary.crt \ --director-secondary-cert=/home/sos/agent-deployment/centostest-primarysecondary.crt \ --keystore=/home/sos/agent-deployment/https-keystore.p12 \ --keystore-password="jobscheduler" \ --truststore=/home/sos/agent-deployment/https-truststore.p12 \ --truststore-password="jobscheduler" \ --make-dirs # downloads the release tarball from the SOS Web Site using curl # downloads the binary file for licensed code to enable cluster operations # extracts the release tarball to the Agent's home directory # specifies the Controller ID of the Controller to which the Agent is dedicated # specifies the Agent Cluster ID # specifies HTTP port 4445 on the localhost network interface and the same HTTPS port on the server network interface # specifies the paths to the Primary and Secondary Controller's server certificates if a Controller Cluster is used # for a Standalone Controller the --controller-secondary-cert option is omitted # deploys the Agent private configuration file which holds references to keystore and truststore # deploys keystore and truststore files # stops and starts the Agent's systemd service # operates the Agent for HTTP port 444454445 |
Note:
- For details about certificates and HTTPS connections see JS7 - Agent HTTPS Connections.
- The
private.conf
configuration file holds references to the Controller's certificate in order to verify the connection from the Controller using HTTPS mutual authentication. - Users have a choice how to provide the required configuration:
- Donwload the private.conf-template-agent template, the Agent Installation Script performs replacements of placeholders in the template file from option values, for details see chapter Replacements.
- Users can manually adjust configuration items in the
private.conf
file that they specify for the Agent Installation Script., see JS7 - Controller Configuration Items.
Install or Update Secondary Director Agent
Code Block | ||||
---|---|---|---|---|
| ||||
curl 'https://download.sos-berlin.com/JobScheduler.2.6/js7_agent_unix.2.6.0.tar.gz' \
-o /tmp/js7_agent_unix.2.6.0.tar.gz
curl 'https://download.sos-berlin.com/JobScheduler.2.6/js7-license.jar' \
-o /tmp/js7-license.jar
./js7_install_agent.sh \
--tarball=/tmp/js7_agent_unix.2.6.0.tar.gz \
--home=/opt/sos-berlin.com/js7/agent \
--data=/var/sos-berlin.com/js7/agent_4445 \
--controller-id=controller \
--agent-id=agent \
--http-port=localhost:4445 \
--https-port=batch.example.com:4445 \
--license-key=/home/sos/agent-deployment/example.pem \
--license-bin=/tmp/js7-license.jar \
--private-conf=/home/sos/agent-deployment/private.conf-template-agent \
--controller-primary-cert=/home/sos/agent-deployment/centostest-primary.crt \
--controller-secondary-cert=/home/sos/agent-deployment/centostest-secondary.crt \
--director-primary-cert=/home/sos/agent-deployment/centostest-primary.crt \
--director-secondary-cert=/home/sos/agent-deployment/centostest-secondary.crt \
--keystore=/home/sos/agent-deployment/https-keystore.p12 \
--keystore-password="jobscheduler" \
--truststore=/home/sos/agent-deployment/https-truststore.p12 \
--truststore-password="jobscheduler" \
--standby \
--make-dirs
# parameterization is the same as from the previous example for a Primary Director Agent
# the one exception being use of the --standby switch |
Note:
Start Agent
Code Block | ||||
---|---|---|---|---|
| ||||
./js7_install_agent.sh \ --home=/home/sos/agent \ --http-port=4445 \ --exec-start=StartService \ --exec-stop=StopService \ --no-install # stops the Agent's systemd service if the Agent is running # starts the Agent's systemd service |
...
Overview
Content Tools