Versions Compared

Key

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

...

Code Block
titleExample for Deployment Descriptor
linenumberstrue
collapsetrue
{
    "descriptor": {
        "descriptorId": "standalonecluster-joc-controller-agent-https-2022-12-04",
        "title": "Install or update JOC Cockpit, Controller and Agent StandaloneCluster instances using HTTPS connections",
        "account": "sosap",
        "scheduled": "2022-12-02T0502T06:19:12.000+0001:00",
        "created": "2022-11-30T2230T23:19:12.000+01:00: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",
                         },
   "javaOptions": "-Xmx100m -Djava.security.egd=file:///dev/urandom"
                        },
                        "configuration": "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"
                            ]
                        }
                    },
                    {
                        "agentId": "agent_002",
                        "target": {
                            "connection": {
                                "host": "centostest-secondary",
                                "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-secondary",
                            "data": "/var/sos-berlin.com/js7/agent-secondary",
                            "httpPort": "localhost:32445",
                            "httpsPort": "centostest-primarysecondary.sos:32443",
                            "javaHome": "/opt/java/jdk8u202-b08",
                            "javaOptions": "-Xmx100m -Djava.security.egd=file:///dev/urandom"
                        },
                        "configuration": {
                            "certificates": {
                                "keyStore": "agents/instances/agent_002/config/private/https-keystore.p12",
                                "keyStorePassword": "jobscheduler",
                                "keyPassword": "jobscheduler",
                                "trustStore": "agents/instances/agent_002/config/private/https-truststore.p12",
                                "trustStorePassword": "jobscheduler"
                            },
                            "templates": [
                                "agents/templates/https/config"
                            ]
                        }
                    }
                ]
            }
        ]
    },
    "controllers": [
        {
            "jocRefcontrollerId": "joccontroller",
            "controllerIdjocRef": "controllerjoc",
            "primary": {
                "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_controller_unix.2.5.3.tar.gz"
                },
                "installation": {
                    "home": "/opt/sos-berlin.com/js7/controller-standaloneprimary",
                    "data": "/var/sos-berlin.com/js7/controller-standaloneprimary",
                    "httpPort": "localhost:21444",
                    "httpsPort": "centostest-primary.sos:21443",
                    "javaHome": "/opt/java/jdk8u202-b08",
                    "javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom"
                },
                "configuration": {
                    "certificates": {
                        "cert": "controllers/instances/controller.standaloneprimary/config/private/centostest-primary.crt",
                        "keyStore": "controllers/instances/controller.standaloneprimary/config/private/https-keystore.p12",
                        "keyStorePassword": "jobscheduler",
                        "keyPassword": "jobscheduler",
                        "keyAlias": "centostest-primary",
                        "trustStore": "controllers/instances/controller.standaloneprimary/config/private/https-truststore.p12",
                        "trustStorePassword": "jobscheduler"
                    },
                    "templates": [
                        "controllers/templates/https.primary/config"
                    ]
                }
            },
        }
    ],
    "joc": [
    "secondary": {
                "target": {
                    "connection": {
                        "host": "centostest-secondary",
                        "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_controller_unix.2.5.3.tar.gz"
                },
                "installation": {
                    "home": "/opt/sos-berlin.com/js7/controller-secondary",
                    "data": "/var/sos-berlin.com/js7/controller-secondary",
                    "httpPort": "localhost:22444",
                    "httpsPort": "centostest-secondary.sos:22443",
                    "javaHome": "/opt/java/jdk8u202-b08",
                    "javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom"
                },
                "configuration": {
                    "certificates": {
                        "cert": "controllers/instances/controller.secondary/config/private/centostest-secondary.crt",
                        "keyStore": "controllers/instances/controller.secondary/config/private/https-keystore.p12",
                        "keyStorePassword": "jobscheduler",
                        "keyPassword": "jobscheduler",
                        "trustStore": "controllers/instances/controller.secondary/config/private/https-truststore.p12",
                        "trustStorePassword": "jobscheduler"
                    },
                    "templates": [
                        "controllers/templates/https.secondary/config"
                    ]
                }
            }
        }
    ],
    "joc": [
        {
            "members": {
                "clusterId": "joc",
                "instances": [
                    {
                        "instanceId": 1,
                        "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_joc_linux.2.5.3.tar.gz"
                        },
                        "installation": {
                            "setupDir": "/tmp/sos-berlin.com/js7/joc-primary.setup",
                            "home": "/opt/sos-berlin.com/js7/joc-primary",
                            "data": "/var/sos-berlin.com/js7/joc-primary",
                            "httpPort": "localhost:11446",
                            "httpsPort": "centostest-primary.sos:11443",
                            "dbmsConfig": "joc/templates/dbms/mysql/response/hibernate.cfg.xml",
                            "isUser": true,
                            "isPreserveEnv": true,
                            "javaHome": "/opt/java/jdk-11.0.2+9",
                            "javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom"
                        },
                        "configuration": {
                            "certificates": {
                                "cert": "joc/instances/joc.primary/resources/centostest-primary.crt",
                                "keyStore": "joc/instances/joc.primary/resources/https-keystore.p12",
                                "keyStorePassword": "jobscheduler",
                                "keyPassword": "jobscheduler",
                                "trustStore": "joc/instances/joc.primary/resources/https-truststore.p12",
                                "trustStorePassword": "jobscheduler"
                            },
                            "startFiles": {
                                "httpIni": "joc/templates/https/start.d/http.ini",
                                "httpsIni": "joc/templates/https/start.d/https.ini",
                                "sslIni": "joc/templates/https/start.d/ssl.ini"
                            },
                            "templates": [
                                "joc/templates/https/resources"
               {
            "members": {
]
                       "clusterId": "joc",
 }
                 "instances": [   },
                    {
                        "instanceId": 12,
                        "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.3",
                            "tarball": "2.5.3/js7_joc_linux.2.5.3.tar.gz"
                        },
                        "installation": {
                            "setupDir": "/tmp/sos-berlin.com/js7/joc-standalone.setup",
    },
                        "isUserinstallation": true,{
                            "isPreserveEnvsetupDir": true"/tmp/sos-berlin.com/js7/joc-secondary.setup",
                            "home": "/opt/sos-berlin.com/js7/joc-standalonesecondary",
                            "data": "/var/sos-berlin.com/js7/joc-standalonesecondary",
                            "httpPort": "localhost:1144612446",
                            "httpsPort": "centostest-primarysecondary.sos:1144312443",
                            "dbmsConfig": "joc/templates/dbms/h2mysql/response/hibernate.cfg.xml",
                            "dbmsDriverisUser": "joc/templates/dbms/h2/response/h2-1.4.200.jar" true,
                            "isPreserveEnv": true,
                            "javaHome": "/opt/java/jdk-11.0.2+9",
                            "javaOptions": "-Xmx256m -Djava.security.egd=file:///dev/urandom"
                        },
                        "configuration": {
                            "certificates": {
                                "cert": "joc/instances/joc.standalonesecondary/resources/centostest-primarysecondary.crt",
                                "keyStore": "joc/instances/joc.standalonesecondary/resources/https-keystore.p12",
                                "keyStorePassword": "jobscheduler",
                                "keyPassword": "jobscheduler",
                                "keyAlias": "centostest-primary",
                                "trustStore": "joc/instances/joc.standalonesecondary/resources/https-truststore.p12",
                                "trustStorePassword": "jobscheduler"
                            },
                            "templatesstartFiles": [{
                                "httpIni": "joc/templates/https/resources"
                       /start.d/http.ini",
     ],
                            "startFileshttpsIni": {"joc/templates/https/start.d/https.ini",
                                "httpInisslIni": "joc/templates/https/start.d/httpssl.ini",

                            },
                            "httpsInitemplates": "joc/templates/https/start.d/https.ini",[
                                "sslIni": "joc/templates/https/start.d/ssl.iniresources"
                            }]
                        }
                    }
                ]
            }
        }
    ],
    "version": "1.5.3"
}  

Resources

...