Page History
...
- to hold the script environment for JS7 - Automated Installation and Update and the JS7 - Deployment Packaging Script,
- to hold the configuration files and certificates for deployment of JS7 components,
- to hold the JS7 installations per JS7 release and component such as JOC Cockpit, Controller, Agent,
- to hold the archive of deployment packages per JS7 releases and target machine,
- to operate a JS7 Agent that is used to perform the JS7 - Deployment Workflow.
...
Preparing the Deployment Area
Setting up the Deployment Area
...
Download tarball:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl "https://download.sos-berlin.com/JobScheduler/js7_deploy.tar.gz" --output "js7_deploy.tar.gz" |
...
Extract the Deployment Area tarball to an arbitrary directory. The tarball includes the top-level directory js7.deploy
, therefore the following command will extract to $HOME/js7.deploy
.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
cd $HOME tar -xzf js7.deploy.tar.gz |
...
Users can adjust the location of directories to their needs:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/sh SCRIPT_HOME=${HOME}/js7.deploy DEP_ARCHIVE="${DEP_ARCHIVE:-$SCRIPT_HOME/archive}" DEP_BIN="${DEP_BIN:-$SCRIPT_HOME/bin}" DEP_CA="${DEP_CA:-$SCRIPT_HOME/ca}" DEP_CONFIG="${DEP_CONFIG:-$SCRIPT_HOME/config}" DEP_DESC="${DEP_DESC:-$SCRIPT_HOME/desc}" DEP_RELEASE="${DEP_RELEASE:-$SCRIPT_HOME/release}" DEP_WORK="${DEP_WORK:-$SCRIPT_HOME/work}" JAVA_HOME="/usr/lib/jvm/jdk-11.0.2" PATH=${JAVA_HOME}/bin:${PATH} export JAVA_HOME PATH DEP_ARCHIVE DEP_BIN DEP_CA DEP_CONFIG DEP_DESC DEP_RELEASE DEP_WORK |
...
The script has to be sourced, this means the call to the script is preceded by a dot and a space like this:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
. ./env.sh |
...
The script is included with the ca
directory and is executed without arguments.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
./ca/create_root_ca.sh |
...
Download can be performed in a number of ways. The curl
utility can be used for this purpose.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl "https://download.sos-berlin.com/JobScheduler.2.5/js7_agent_unix.2.5.0.tar.gz" --output "js7_agent_unix.2.5.0.tar.gz" curl "https://download.sos-berlin.com/JobScheduler.2.5/js7_controller_unix.2.5.0.tar.gz" --output "js7_controller_unix.2.5.0.tar.gz" curl "https://download.sos-berlin.com/JobScheduler.2.5/js7_joc_linux.2.5.0.tar.gz" --output "js7_joc_linux.2.5.0.tar.gz" |
Creating Certificates
Users who do not wish to use HTTPS connections or who are provided certificates from their organization can skip this step.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#!/bin/sh
set -e
SCRIPT_HOME=$(cd "$(dirname "$0")" >/dev/null && pwd)
DEP_CA=${DEP_CA:-$(dirname "${SCRIPT_HOME}")/ca}
DEP_BIN=${DEP_BIN:-$(dirname "${SCRIPT_HOME}")/bin}
DEP_CONFIG=${DEP_CONFIG:-$(dirname "${SCRIPT_HOME}")/config}
create_self_signed_certs()
{
server=$1
config=$2
${DEP_CA}/create_certificate.sh --dns=${server},${server}.sos --days=365
if [ ! -d "${config}" ]
then
mkdir -p "${config}"
fi
cp ${DEP_CA}/certs/${server}.crt ${config}/
${DEP_BIN}/js7_create_certificate_store.sh \
--keystore=${config}/https-keystore.p12 \
--truststore=${config}/https-truststore.p12 \
--key=${DEP_CA}/private/${server}.key \
--cert=${DEP_CA}/certs/${server}.crt \
--alias=${server} \
--password=jobscheduler \
--ca-root=${DEP_CA}/certs/root-ca.crt \
--chain \
--make-dirs
}
# Function Host Location
create_self_signed_certs centostest-primary ${DEP_CONFIG}/agents/instances/agent_001/config/private
create_self_signed_certs centostest-secondary ${DEP_CONFIG}/agents/instances/agent_002/config/private
create_self_signed_certs centostest-primary ${DEP_CONFIG}/controllers/instances/standalone/config/private
create_self_signed_certs centostest-primary ${DEP_CONFIG}/controllers/instances/cluster.primary/config/private
create_self_signed_certs centostest-secondary ${DEP_CONFIG}/controllers/instances/cluster.secondary/config/private
create_self_signed_certs centostest-primary ${DEP_CONFIG}/joc/instances/standalone/resources
create_self_signed_certs centostest-primary ${DEP_CONFIG}/joc/instances/cluster.primary/resources
create_self_signed_certs centostest-secondary ${DEP_CONFIG}/joc/instances/cluster.secondary/resources
|