Page History
...
- Host
centostest-primary
operating an Agent, a Standalone Controller instance and JOC Cockpit instance. - All components 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 Agent JOCStandalone 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", "members": [ "target": { "agentId": "agent_001", "connectiontarget": { "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.02", "tarball": "2.5.02/js7_agent_unix.2.5.02.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": [ {"agentId": "agent_002", "standalonetarget": { "primaryconnection": { "targethost": {"centostest-secondary", "port": 22 "connection": { }, "authentication": { "host": "centostest-primary", "method": "publickey", "portuser": 22"sos", "keyFile": "/home/sos/.ssh/sos_rsa" }, }, "authenticationpackageLocation": {"/tmp", "execPre": "StopService", "methodexecPost": "publickeyStartService", "makeService": true "user": "sos"}, "media": { "keyFilerelease": "/home/sos/.ssh/sos_rsa"2.5.2", "tarball": "2.5.2/js7_agent_unix.2.5.2.tar.gz" }, "installation": { "packageLocationhome": "/tmp/opt/sos-berlin.com/js7/agent-secondary", "execPredata": "StopService/var/sos-berlin.com/js7/agent-secondary", "execPost"httpPort": "StartService32445", "javaHome": "/opt/java/jdk8u202-b08" "makeService": true } }, ] } ] }, "mediacontrollers": {[ { "jocRef": "cluster", "releasecontrollerId": "2.5.0controller", "primary": { "target": { "tarballconnection": "2.5.0/js7_controller_unix.2.5.0.tar.gz"{ "host": "centostest-primary", }, "port": 22 }, "installationauthentication": { "method": "publickey", "homeuser": "/opt/sos-berlin.com/js7/controller-primary", "datakeyFile": "/varhome/sos-berlin/.com/js7/controller-primary", "httpPort": "21444"ssh/sos_rsa" }, "packageLocation": "/tmp", "execPre": "StopService", } "execPost": "StartService", "makeService": true }, "configurationmedia": { "release": "2.5.2", "templatestarball": ["2.5.2/js7_controller_unix.2.5.2.tar.gz" }, "installation": { "home": "controllers/templatesopt/http.primary/config"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": [ { "standalonemembers": { "clusterId": "standalone", "primaryinstances": {[ { "targetinstanceId": {1, "target": { "connection": { "host": "centostest-primary", "port": 22 }, "authentication": { "method": "publickey", "user": "sos", "keyFile": "/home/sos/.ssh/sos_rsa" }, "packageLocation": "/tmp", "execPre"execPre": "StopService", "execPost": "StartService", "makeService": true }, "media": { "release": "2.5.02", "tarball": "2.5.02/js7_joc_linux.2.5.02.tar.gz" }, "installation": { "setupDir": "/opt/sos-berlin.com/js7/joc-primarystandalone.setup", "isUser": true, "home": "isPreserveEnv": true, "home": "/opt/sos-berlin.com/js7/joc-primarystandalone", "data": "/var/sos-berlin.com/js7/joc-primarystandalone", "httpPort": "11446", "dbmsConfig": "joc/templates/dbms/h2/response/hibernate.cfg.xml", "isUserdbmsDriver": true"joc/templates/dbms/h2/response/h2-1.4.200.jar", "isPreserveEnv": true, "javaHome": "/opt/java/jdk-11.0.2+9", "javaOptions": "-Xmx512mXmx256m -Djava.security.egd=file:///dev/urandom" }, }, "configuration": { "configurationtemplates": { [ "responseDir": "joc/templates/http/responseresources", ], "templatesstartFiles": [{ "httpIni": "joc/templates/http/resources"start.d/http.ini", "httpsIni": "joc/templates/http/start.d/https.ini", ] "sslIni": "joc/templates/http/start.d/ssl.ini" } } } } }] } } ], ]"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 use HTTPS connections and are equipped with certificates.
Download example: agentstandalone-joc-controller-jocagent-https-2022-12-04.descriptor.json
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "descriptor": { "descriptorId": "cluster-joc-controller-agent-https-agents2022-all12-2022120404", "title": "Install or update JOC AgentCockpit, Controller and Agent JOCCluster Cockpitinstances using HTTPS connections", "account": "sossosap", "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" }, "certificatesagents": { "controllercontrollerRefs": {[ "primaryControllerCert": "controllers/instances/cluster.primary/config/private/centostest-primary.crt", { "controllerId": "controller", "secondaryControllerCertmembers": "controllers/instances/cluster.secondary/config/private/centostest-secondary.crt" [ }, { "jocagentId": {"agent_001", "primaryJocCert": "joc/instances/cluster.primary/resources/centostest-primary.crt", "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.2", "tarball": "2.5.2/js7_agent_unix.2.5.2.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", "trustStorePassword": "jobscheduler" }, "templates": [ "agents/templates/https/config" ] } "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.02", "tarball": "2.5.02/js7_agent_unix.2.5.02.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": "cluster", "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.2", "controller": {"tarball": "2.5.2/js7_controller_unix.2.5.2.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/cluster.primary/config/private/centostest-primary.crt", } } ], "controllerskeyStore": [ "controllers/instances/cluster.primary/config/private/https-keystore.p12", { "clusterkeyStorePassword": {"jobscheduler", "primary": { "targetkeyPassword": {"jobscheduler", "connectionkeyAlias": { "centostest-primary", "hosttrustStore": "centostest-primarycontrollers/instances/cluster.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.2", "configurationtarball": { "2.5.2/js7_controller_unix.2.5.2.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/httpscluster.primarysecondary/config/private/centostest-secondary.crt", ] "keyStore": "controllers/instances/cluster.secondary/config/private/https-keystore.p12", } "keyStorePassword": "jobscheduler", }, "secondarykeyPassword": {"jobscheduler", "targettrustStore": {"controllers/instances/cluster.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": "soscluster", "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", "datakeyFile": "/varhome/sos-berlin/.com/js7/controller-secondary", "httpPort": "localhost:22444", ssh/sos_rsa" }, "httpsPortpackageLocation": "centostest-secondary:22443/tmp", "javaOptionsexecPre": "-Xmx256mStopService", }, "execPost": "StartService", "configuration": { "certificates"makeService": {true "keyStore": "controllers/instances/cluster.secondary/config/private/https-keystore.p12"}, "keyStorePasswordmedia": "jobscheduler",{ "keyPasswordrelease": "jobscheduler2.5.2", "trustStoretarball": "controllers/instances/cluster.secondary/config/private/https-truststore.p12",2.5.2/js7_joc_linux.2.5.2.tar.gz" }, "trustStorePassword": "jobscheduler" "installation": { }, "templatessetupDir": ["/opt/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/cluster.primary/resources/centostest-primary.crt", "keyFilekeyStore": "joc/home/sos/.ssh/sos_rsa"instances/cluster.primary/resources/https-keystore.p12", }, "keyStorePassword": "jobscheduler", "packageLocation": "/tmp", "execPrekeyPassword": "StopServicejobscheduler", "execPost "trustStore": "StartServicejoc/instances/cluster.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/templates/opthttps/sos-berlinstart.com/js7/joc-primary.setup",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/dbms/mysql/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.2", }, "tarball": "2.5.2/js7_joc_linux.2.5.2.tar.gz" "authentication": { }, "methodinstallation": "publickey",{ "usersetupDir": "/opt/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/cluster.secondary/resources/centostest-secondary:12443.crt", "isUser": true, "keyStore": "joc/instances/cluster.secondary/resources/https-keystore.p12", "isPreserveEnv": true, "javaOptionskeyStorePassword": "-Xmx512m -Djava.security.egd=file:///dev/urandom"jobscheduler", }, "keyPassword": "jobscheduler", "configuration": { "responseDirtrustStore": "joc/templatesinstances/dbmscluster.secondary/mysql/responseresources/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