Page History
...
In the JS7 - Deployment process a Deployment Descriptor specifies
- which JS7 components products of JOC Cockpit, Controller instances and Agents should be installed,
- where to install each JS7 componentproduct,
- which installation options to use, for example the installation directory,
- which configuration options to use, for example port usage.
...
The JS7 - Deployment Packaging makes use of the Deployment Descriptor to install and to package JS7 componentsproducts.
Deployment Descriptor
Deployment Descriptors are specified from .json files.
...
- Host
centostest-primary
operating an Agent, a Standalone Controller instance and JOC Cockpit instance. - All components products use HTTP connections.
Download example: agentstandalone-joc-controller-jocagent-http-2022-12-04.descriptor.json
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "descriptor": { "descriptorId": "agentstandalone-joc-controller-jocagent-http-2022-12-2022120404", "title": "Install or update JOC AgentCockpit, Controller and JOCAgent Standalone Cockpitinstances using HTTP connections", "account": "sossosap", "scheduled": "2022-12-02T0602T05:19:12.000+0100:00", "created": "2022-11-30T2330T22:19:12.000+0100:00" }, "agents": [{ "controllerRefs": [ { { "agent_001controllerId": {"controller", "target"members": {[ { "connection "agentId": "agent_001", "target": { "connection": { "host": "centostest-primary", "port": 22 }, "authentication": { "method": "publickey", "user": "sos", "keyFile": "/home/sos/.ssh/sos_rsa" }, "packageLocation": "/tmp", "execPre": "StopService", "execPost": "StartService", "makeService": true }, "media": { "release": "2.5.03", "tarball": "2.5.03/js7_agent_unix.2.5.03.tar.gz" }, "installation": { "home": "/opt/sos-berlin.com/js7/agent-primary", "data": "/var/sos-berlin.com/js7/agent-primary", "httpPort": "31445", }"javaHome": "/opt/java/jdk8u202-b08" } } ]}, "controllers": [ { "standaloneagentId": { "agent_002", "primarytarget": { "target": "connection": { "connection"host": { "centostest-secondary", "hostport": "centostest-primary",22 }, "portauthentication": 22{ "method": "publickey", }, "user": "sos", "authenticationkeyFile": {"/home/sos/.ssh/sos_rsa" }, "methodpackageLocation": "publickey/tmp", "execPre": "StopService", "userexecPost": "sosStartService", "makeService": true "keyFile": "/home/sos/.ssh/sos_rsa"}, "media": { }, "release": "2.5.3", "packageLocationtarball": "/tmp",2.5.3/js7_agent_unix.2.5.3.tar.gz" }, "execPreinstallation": "StopService", { "execPosthome": "StartService/opt/sos-berlin.com/js7/agent-secondary", "data": "/var/sos-berlin.com/js7/agent-secondary", "makeServicehttpPort": true },"32445", "javaHome": "/opt/java/jdk8u202-b08" } "media": {} ] } ] }, "releasecontrollers": "2.5.0",[ { "jocRef": "joc", "controllerId": "controller", "tarballprimary": "2.5.0/js7_controller_unix.2.5.0.tar.gz"{ "target": { },"connection": { "host": "centostest-primary", "installationport": {22 }, "authentication": { "home "method": "/opt/sos-berlin.com/js7/controller-primarypublickey", "user": "sos", "datakeyFile": "/varhome/sos-berlin/.com/js7/controller-primary",ssh/sos_rsa" "httpPort": "21444" }, "packageLocation": "/tmp", }"execPre": "StopService", "execPost": "StartService", "configurationmakeService": {true }, "media": { "templatesrelease": ["2.5.3", "tarball": "2.5.3/js7_controller_unix.2.5.3.tar.gz" }, "controllers/templates/http.primary/config""installation": { "home": "/opt/sos-berlin.com/js7/controller-standalone", "data": "/var/sos-berlin.com/js7/controller-standalone", ] "httpPort": "21444", }"javaHome": "/opt/java/jdk8u202-b08", "javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom" } } } } } ], "joc": [ { "standalone"members": { "clusterId": "joc", "primaryinstances": {[ { "targetinstanceId": {1, "target": { "connection": { "host": "centostest-primary", "port": 22 }, }, "authentication": { "authenticationmethod": {"publickey", "method"user": "publickeysos", "user""keyFile": "/home/sos/.ssh/sos_rsa", }, "keyFilepackageLocation": "/home/sos/.ssh/sos_rsa"tmp", "execPre": "StopService", }, "execPost": "StartService", "packageLocationmakeService": "/tmp",true }, "execPremedia": "StopService", { "execPostrelease": "StartService2.5.3", "makeServicetarball": true "2.5.3/js7_joc_linux.2.5.3.tar.gz" }, "media"installation": { "releasesetupDir": "2.5.0/tmp/sos-berlin.com/js7/joc-standalone.setup", "isUser": true, "tarballisPreserveEnv": "2.5.0/js7_joc_linux.2.5.0.tar.gz"true, }, "installation": { "home": "/opt/sos-berlin.com/js7/joc-standalone", "setupDirdata": "/optvar/sos-berlin.com/js7/joc-primary.setupstandalone", "httpPort": "11446", "homedbmsConfig": "joc/opt/sos-berlin.com/js7/joc-primary", templates/dbms/h2/response/hibernate.cfg.xml", "datadbmsDriver": "joc/templates/var/sos-berlin.com/js7/joc-primarydbms/h2/response/h2-1.4.200.jar", "httpPortjavaHome": "11446/opt/java/jdk-11.0.2+9", "javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom" "isUser": true}, "configuration": { "isPreserveEnvtemplates": true,[ "joc/templates/http/resources" "javaOptions": "-Xmx512m -Djava.security.egd=file:///dev/urandom" ], }, "startFiles": { "configurationhttpIni": { "joc/templates/http/start.d/http.ini", "responseDirhttpsIni": "joc/templates/http/responsestart.d/https.ini", "sslIni": "joc/templates/http/start.d/ssl.ini" "templates": [ } } "joc/templates/http/resources"} ] ]} } }], } } ] }"version": "1.5.3" } |
Agents, Controller Cluster and JOC Cockpit Cluster using HTTPS Connections
...
- Host
centostest-primary
andcentostest-secondary
each operate an Agent, a Controller instance and a JOC Cockpit instance. - Controller and JOC Cockpit instances on both hosts act as a cluster. Use of clustering includes to deploy a JS7 license.
- All components products use HTTPS connections and are equipped with certificates.
Download example: agentcluster-joc-controller-jocagent-https-2022-12-04.descriptor.json
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "descriptor": { "descriptorId": "cluster-joc-controller-agents-all-20221204", -agent-https-2022-12-04", "title": "Install or update JOC Cockpit, Controller and Agent Cluster instances using HTTPS connections", "account": "sosap", "scheduled": "2022-12-02T06:19:12+01:00", "created": "2022-11-30T23:19:12+01:00" }, "license": { "licenseKeyFile": "licenses/sos.pem", "licenseBinFile": "licenses/js7-license.jar" }, "agents": { "controllerRefs": [ { "controllerId": "controller", "members": [ { "agentId": "agent_001", "target": { "connection": { "host": "centostest-primary", "port": 22 }, "authentication": { "method": "publickey", "user": "sos", "keyFile": "/home/sos/.ssh/sos_rsa" }, "packageLocation": "/tmp", "execPre": "StopService", "execPost": "StartService", "makeService": true }, "media": { "release": "2.5.3", "tarball": "2.5.3/js7_agent_unix.2.5.3.tar.gz" }, "installation": { "home": "/opt/sos-berlin.com/js7/agent-primary", "data": "/var/sos-berlin.com/js7/agent-primary", "httpPort": "localhost:31445", "httpsPort": "centostest-primary.sos:31443", "javaHome": "/opt/java/jdk8u202-b08" }, "configuration": { "certificates": { "keyStore": "agents/instances/agent_001/config/private/https-keystore.p12", "keyStorePassword": "jobscheduler", "keyPassword": "jobscheduler", "trustStore": "agents/instances/agent_001/config/private/https-truststore.p12", "title": "Install or update Agent, Controller and JOC Cockpit using HTTPS connections", "accounttrustStorePassword": "sosjobscheduler", "scheduled": "2022-12-02T06:19:12+01:00", "created": "2022-11-30T23:19:12+01:00" }, "license": { "licenseKeyFile": "licenses/sos.pem", "licenseBinFile": "licenses/js7-license.jar" templates": [ }, "certificates": { "controller": { "primaryControllerCert": "controllersagents/instancestemplates/cluster.primaryhttps/config/private/centostest-primary.crt", "secondaryControllerCert": "controllers/instances/cluster.secondary/config/private/centostest-secondary.crt" ] }, "joc": { } "primaryJocCert": "joc/instances/cluster.primary/resources/centostest-primary.crt", "secondaryJocCert": "joc/instances/cluster.primary/resources/centostest-secondary.crt" }, } },{ "agents": [ { "agentId": "agent_001": { 002", "target": { "connection": { "host": "centostest-primarysecondary", "port": 22 }, "authentication": { : { "method": "publickey", "user": "sos", "keyFile": "/home/sos/.ssh/sos_rsa" }, "packageLocation": "/tmp", "execPre": "StopService", "execPost": "StartService", "makeService": true }, }, "media": { "release": "2.5.03", "tarball": "2.5.03/js7_agent_unix.2.5.03.tar.gz" }, }, "installation": { "installation": { "home": "/opt/sos-berlin.com/js7/agent-primary", "datahome": "/varopt/sos-berlin.com/js7/agent-primarysecondary", "httpPort": "localhost:31445", "httpsPortdata": "centostest-primary:31443" }, /var/sos-berlin.com/js7/agent-secondary", "configuration": { "controllerhttpPort": { "localhost:32445", "controllerIdhttpsPort": "cluster" centostest-secondary.sos:32443", }, "certificates"javaHome": {"/opt/java/jdk8u202-b08" "keyStore": "agents/instances/agent_001/config/private/https-keystore.p12"}, "keyStorePasswordconfiguration": "jobscheduler", { "keyPasswordcertificates": "jobscheduler", { "trustStorekeyStore": "agents/instances/agent_001002/config/private/https-truststorekeystore.p12", "trustStorePasswordkeyStorePassword": "jobscheduler", }, "keyPassword": "jobscheduler", "templates": [ "trustStore": "agents/templatesinstances/httpsagent_002/config/private/https-truststore.p12", ]"trustStorePassword": "jobscheduler" } }, }, { "agent_002templates": { [ "target": { "agents/templates/https/config" "connection": {] "host": "centostest-secondary",} } "port": 22 ] }, } ] }, "authenticationcontrollers": {[ { "methodcontrollerId": "publickeycontroller", "jocRef": "joc", "userprimary": "sos",{ "target": { "keyFile": "/home/sos/.ssh/sos_rsa" "connection": { }, "packageLocationhost": "/tmpcentostest-primary", "execPreport": "StopService",22 "execPost": "StartService"}, "makeServiceauthentication": true{ }, "mediamethod": {"publickey", "releaseuser": "2.5.0sos", "tarballkeyFile": "2.5.0/js7_agent_unix.2.5.0.tar.gz" /home/sos/.ssh/sos_rsa" }, "installationpackageLocation": {"/tmp", "home": "/opt/sos-berlin.com/js7/agent-secondaryexecPre": "StopService", "dataexecPost": "/var/sos-berlin.com/js7/agent-secondaryStartService", "httpPort": "localhost:32445", "makeService": true }, "httpsPort": "centostest-secondary:32443" "media": { }, "configurationrelease": { "2.5.3", "controller": {"tarball": "2.5.3/js7_controller_unix.2.5.3.tar.gz" "controllerId": "cluster"}, },"installation": { "certificateshome": { "/opt/sos-berlin.com/js7/controller-primary", "keyStoredata": "agents/instances/agent_002/config/private/https-keystore.p12var/sos-berlin.com/js7/controller-primary", "keyStorePasswordhttpPort": "jobschedulerlocalhost:21444", "keyPasswordhttpsPort": "jobschedulercentostest-primary.sos:21443", "trustStorejavaHome": "agents/instancesopt/agent_002/config/private/https-truststore.p12java/jdk8u202-b08", "trustStorePasswordjavaOptions": "jobscheduler" -Xmx256m -Djava.security.egd=file:///dev/urandom" }, "templatesconfiguration": [{ "agents/templates/https/config"certificates": { ] } "cert": "controllers/instances/controller.primary/config/private/centostest-primary.crt", } } ], "controllerskeyStore": [ "controllers/instances/controller.primary/config/private/https-keystore.p12", { "clusterkeyStorePassword": {"jobscheduler", "primary": { "targetkeyPassword": {"jobscheduler", "connectionkeyAlias": { "centostest-primary", "hosttrustStore": "centostest-primarycontrollers/instances/controller.primary/config/private/https-truststore.p12", "porttrustStorePassword": 22 "jobscheduler" }, "authenticationtemplates": {[ "method": "publickey", "controllers/templates/https.primary/config" ] "user": "sos", } }, "keyFilesecondary": "/home/sos/.ssh/sos_rsa"{ }, "target": { "packageLocationconnection": "/tmp",{ "execPrehost": "StopServicecentostest-secondary", "execPostport": "StartService", 22 "makeService": true }, "mediaauthentication": { "releasemethod": "2.5.0publickey", "tarballuser": "2.5.0/js7_controller_unix.2.5.0.tar.gz"sos", }, "keyFile": "/home/sos/.ssh/sos_rsa" "installation": { }, "homepackageLocation": "/opt/sos-berlin.com/js7/controller-primarytmp", "data": "/var/sos-berlin.com/js7/controller-primaryexecPre": "StopService", "httpPort "execPost": "localhost:21444StartService", "makeService": true "httpsPort": "centostest-primary:21443", }, "javaOptionsmedia": "-Xmx256m"{ }"release": "2.5.3", "configurationtarball": { "2.5.3/js7_controller_unix.2.5.3.tar.gz" }, "certificatesinstallation": { "keyStore"home": "controllers/instancesopt/clustersos-berlin.primarycom/configjs7/private/https-keystore.p12controller-secondary", "keyStorePassword"data": "jobscheduler/var/sos-berlin.com/js7/controller-secondary", "keyPasswordhttpPort": "jobschedulerlocalhost:22444", "httpsPort": "centostest-secondary.sos:22443", "trustStore": "controllers/instances/cluster.primary/config/private/https-truststore.p12", "javaHome": "/opt/java/jdk8u202-b08", "trustStorePasswordjavaOptions": "jobscheduler-Xmx256m -Djava.security.egd=file:///dev/urandom" }, }, "configuration": { "templatescertificates": [{ "cert": "controllers/templatesinstances/httpscontroller.primarysecondary/config/private/centostest-secondary.crt", ] "keyStore": "controllers/instances/controller.secondary/config/private/https-keystore.p12", } "keyStorePassword": "jobscheduler", }, "secondarykeyPassword": {"jobscheduler", "targettrustStore": {"controllers/instances/controller.secondary/config/private/https-truststore.p12", "connectiontrustStorePassword": {"jobscheduler" }, "host": "centostest-secondary", "templates": [ "port": 22 "controllers/templates/https.secondary/config" },] } "authentication": { } } ], "joc": [ "method": "publickey", { "members": { "userclusterId": "sosjoc", "keyFileinstances": "/home/sos/.ssh/sos_rsa"[ },{ "packageLocationinstanceId": "/tmp"1, "execPretarget": "StopService",{ "execPostconnection": "StartService", { "makeServicehost": true }, "centostest-primary", "mediaport": 22 { "release": "2.5.0" }, "tarballauthentication": "2.5.0/js7_controller_unix.2.5.0.tar.gz"{ }, "method": "publickey", "installation": { "homeuser": "/opt/sos-berlin.com/js7/controller-secondary", "data": "/var/sos-berlin.com/js7/controller-secondary", "httpPortkeyFile": "localhost:22444",/home/sos/.ssh/sos_rsa" "httpsPort": "centostest-secondary:22443", }, "javaOptionspackageLocation": "-Xmx256m/tmp", }, "execPre": "StopService", "configurationexecPost": { "StartService", "certificatesmakeService": {true "keyStore": "controllers/instances/cluster.secondary/config/private/https-keystore.p12", }, "keyStorePasswordmedia": "jobscheduler",{ "keyPasswordrelease": "jobscheduler2.5.3", "trustStoretarball": "controllers/instances/cluster.secondary/config/private/https-truststore.p12",2.5.3/js7_joc_linux.2.5.3.tar.gz" }, "trustStorePassword": "jobscheduler" "installation": { }, "templatessetupDir": ["/tmp/sos-berlin.com/js7/joc-primary.setup", "home"controllers: "/templatesopt/https.secondary/config" sos-berlin.com/js7/joc-primary", ] "data": "/var/sos-berlin.com/js7/joc-primary", } }"httpPort": "localhost:11446", } } ], "jochttpsPort": [ "centostest-primary.sos:11443", { "cluster": { "dbmsConfig": "joc/templates/dbms/mysql/response/hibernate.cfg.xml", "primary": { "targetisUser": {true, "connectionisPreserveEnv": {true, "hostjavaHome": "centostest-primary "/opt/java/jdk-11.0.2+9", "portjavaOptions": 22"-Xmx256m -Djava.security.egd=file:///dev/urandom" }, "authenticationconfiguration": { "methodcertificates": "publickey",{ "usercert": "sosjoc/instances/joc.primary/resources/centostest-primary.crt", "keyFilekeyStore": "/home/sos/.ssh/sos_rsa"joc/instances/joc.primary/resources/https-keystore.p12", }, "keyStorePassword": "jobscheduler", "packageLocation": "/tmp", "execPrekeyPassword": "StopServicejobscheduler", "execPost "trustStore": "StartServicejoc/instances/joc.primary/resources/https-truststore.p12", "makeService "trustStorePassword": true"jobscheduler" }, }, "media": { "releasestartFiles": "2.5.0", { "tarballhttpIni": "2.5.0/js7_joc_linux.2.5.0.tar.gz"joc/templates/https/start.d/http.ini", }, "httpsIni": "joc/templates/https/start.d/https.ini", "installation": { "setupDirsslIni": "joc/opt/sos-berlin.com/js7/joc-primary.setup",templates/https/start.d/ssl.ini" "home": "/opt/sos-berlin.com/js7/joc-primary", }, "data": "/var/sos-berlin.com/js7/joc-primary", "httpPorttemplates": "localhost:11446", [ "httpsPort": "centostest-primary:11443", "joc/templates/https/resources" "isUser": true, ] "isPreserveEnv": true, } }, "javaOptions": "-Xmx512m -Djava.security.egd=file:///dev/urandom" { }, "configurationinstanceId": {2, "target": { "responseDir": "joc/templates/https/response", "certificatesconnection": { "keyStorehost": "joc/instances/cluster.primary/resources/https-keystore.p12centostest-secondary", "keyStorePasswordport": "jobscheduler",22 "keyPassword": "jobscheduler"}, "trustStoreauthentication": "joc/instances/cluster.primary/resources/https-truststore.p12", { "method": "publickey", "trustStorePassword": "jobscheduler" "user": "sos", }, "templateskeyFile": ["/home/sos/.ssh/sos_rsa" "joc/templates/https/resources" }, ]"packageLocation": "/tmp", } "execPre": "StopService", }, "secondaryexecPost": {"StartService", "target": { "makeService": true "connection": { }, "hostmedia": "centostest-secondary",{ "portrelease": 22"2.5.3", }, "tarball": "2.5.3/js7_joc_linux.2.5.3.tar.gz" "authentication": { }, "methodinstallation": "publickey",{ "usersetupDir": "/tmp/sos-berlin.com/js7/joc-secondary.setup", "keyFilehome": "/homeopt/sos/-berlin.ssh/sos_rsa" com/js7/joc-secondary", }, "packageLocation"data": "/tmp/var/sos-berlin.com/js7/joc-secondary", "execPrehttpPort": "StopServicelocalhost:12446", "execPosthttpsPort": "StartServicecentostest-secondary.sos:12443", "makeServicedbmsConfig": true }, "joc/templates/dbms/mysql/response/hibernate.cfg.xml", "mediaisUser": {true, "releaseisPreserveEnv": "2.5.0"true, "tarballjavaHome": "2.5.0/js7_joc_linux.2.5.0.tar.gz"/opt/java/jdk-11.0.2+9", }, "installation": {"javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom" "setupDir": "/opt/sos-berlin.com/js7/joc-secondary.setup"}, "home": "/opt/sos-berlin.com/js7/joc-secondary", configuration": { "datacertificates": "/var/sos-berlin.com/js7/joc-secondary", "httpPort": "localhost:12446", { "httpsPortcert": "joc/instances/joc.secondary/resources/centostest-secondary:12443.crt", "isUser": true, "keyStore": "joc/instances/joc.secondary/resources/https-keystore.p12", "isPreserveEnv": true, "javaOptionskeyStorePassword": "-Xmx512m -Djava.security.egd=file:///dev/urandom"jobscheduler", }, "keyPassword": "jobscheduler", "configuration": { "responseDirtrustStore": "joc/templates/https/response/instances/joc.secondary/resources/https-truststore.p12", "certificates": { "trustStorePassword": "jobscheduler" "keyStore": "joc/instances/cluster.secondary/resources/https-keystore.p12" }, "keyStorePasswordstartFiles": "jobscheduler",{ "keyPasswordhttpIni": "jobschedulerjoc/templates/https/start.d/http.ini", "trustStorehttpsIni": "joc/templates/instanceshttps/clusterstart.secondary/resourcesd/https-truststore.p12ini", "trustStorePasswordsslIni": "jobschedulerjoc/templates/https/start.d/ssl.ini" }, "templates": [ "joc/templates/https/resources" ] } } ] } } ] } |
Resources
...
Overview
Content Tools