Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleExample for use of Controller Installation Script
curl 'https://download.sos-berlin.com/JobScheduler.2.5/js7_controller_unix.2.5.2.tar.gz' -o /tmp/js7_controller_unix.2.5.2.tar.gz

./js7_install_controller.sh \
    --tarball=/tmp/js7_controller_unix.2.5.2.tar.gz \
    --home=/home/sos/controller \
    --controller-id="controller" \
    --http-port=localhost:4444 \
    --https-port=batch.example.com:4444 \
    --private-conf=/home/sos/controller-deployment/private.conf \
    --controller-secondary-cert=/home/sos/controller-deployment/centostest-secondary.crt \
    --joc-primary-cert=/home/sos/controller-deployment/centostest-primary.crt \
    --joc-secondary-cert=/home/sos/controller-deployment/centostest-secondary.crt \ 
    --keystore=/home/sos/controller-deployment/https-keystore.p12 \
    --keystore-password=jobscheduler \
    --truststore=/home/sos/controller-deployment/https-truststore.p12 \
    --truststore-password=jobscheduler \ 
    --exec-start=StartService \
    --exec-stop=StopService \
    --make-service \
    --make-dirs

# downloads the release tarball from the SOS Web Site using curl
# extracts the tarball to the Controller's home directory
# specifies HTTP port 4444 on the localhost network interface and the same HTTPS port on the server network interface
# specifies the path to the Secondary Controller's server certificate used by the Primary Controller instance if a Controller Cluster is used
#    a Primary Controller instance requires the server certificate of the Secondary Controller instance
#    a Secondary Controller instance requires the server certificate of the Primary Controller instance
#    for a Standalone Controller both --controller-primary-cert and --controller-secondary-cert arguments are omitted
# specifies the paths to the Primary and Secondary JOC Cockpit's server certificates if a JOC Cockpit Cluster is used
#     for a Standalone JOC Cockpit the --joc-secondary-cert argument is omitted
# deploys the Controller private configuration file which holds references to keystore and truststore
# deploys keystore and truststore files
# stops and starts the Controller's systemd service

...

  • For details about certificates and HTTPS connections see JS7 - Controller HTTPS Connections.
  • The private.conf configuration file holds references to the JOC Cockpit's certificate in order to verify the connection from JOC Cockpit using HTTPS mutual authentication.
  • Users have a choice how to provide the required configuration:
    • The Donwload the private.conf-template-controller template, the Controller Installation Script performs replacements of placeholders in the private.conf configuration file template file from option values, for details see chapter Replacements.
    • Users can manually adjust configuration items in their version of the private.conf file that they specify for the Controller Installation Script., see JS7 - Controller Configuration Items.

...