Versions Compared

Key

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

...

Install-JS7Controller.ps1 [-HomeDir] <String> [[-Data] <String>] [[-Config] <String>] [[-Logs] <String>] [[-User] <String>] [[-ControllerId] <String>] [[-Release] <String>] [[-Tarball] <String>] [[-Patch] <String>] [[-JarPatchJar] <String>] [[-LicenseKey] <String>] [[-LicenseBin] <String>] [[-InstanceScript] <String>] [[-BackupDir] <String>] [[-LogDir] <String>] [[-ExecStart] <String>] [[-ExecStop] <String>] [[-ReturnValues] <String>] [[-DeployDir] <String[]>] [[-ControllerConf] <String>] [[-PrivateConf] <String>] [[-HttpPort] <String>] [[-HttpsPort] <String>] [[-PidFileDir] <String>] [[-PidFileName] <String>] [[-ControllerPrimaryCert] <String>] [[-ControllerSecondaryCert] <String>] [[-JocPrimaryCert] <String>] [[-JocSecondaryCert] <String>] [[-Keystore] <String>] [[-KeystorePassword] <SecureString>] [[-KeyAlias] <String>] [[-Truststore] <String>] [[-TruststorePassword] <SecureString>] [[-JavaHome] <String>] [[-JavaOptions] <String>] [[-StopTimeout] <Int32>] [[-ServiceDir] <String>] [[-ServiceFile] <String>] [[-ServiceName] <String>] [[-ServiceCredentials] <PSCredential>] [[-ServiceStartMode] <String>] [[-ServiceDisplayName] <String>] [-Active] [-Standby] [-NoInstall] [-Uninstall] [-ShowLogs] [-MakeDirs] [-MakeService] [-MoveLibs] [-RemoveJournal] [-Restart] [-Abort] [-Kill] [-WhatIf] [-Confirm] [<CommonParameters>]

...

-Patch <String>
A patch is identified by an issue key and a specific release in the SOS Change Management System.

For example the -Patch JS-1984 -Release 2.2.3 parameters will download an (empty) sample patch from the SOS web site
for the respective operating system that the the cmdlet is operated for:
*
For Unix and Windows the download file is https://download.sos-berlin.com/JobScheduler.2.2/js7_controller_unix.patches/2.2.3.JS-1984.tar.gz
* For windows the downloaded file is https://download.sos-berlin.com/JobScheduler.2.2/-patch/js7_controller_windows.2.2.3-PATCH.JS-1984.ziptar.gz

Patches can be individually downloaded and they can be made available from the -Tarball parameter.

For example the -Patch JS-1984 -Tarball /tmp/js7_controller_windows.2.2.3-PATCH.JS-1984.tar.zip gz parameters will apply the patch from the downloaded file.

Patches are added to the Controller's <home>/lib/patches directory.
Note that patches will be removed when updating the Controller installation later on.

To apply patches the Controller has to be restarted. The -Restart or -ExecStart, -ExecStop parameters can be used for automated restart.

Required?false
Position?9
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

PatchJar

-Jar PatchJar <String>
Opetionally specifies the path to a .jar file that holds a patch.

The patch .jar file is has to be downloaded individually and will be copied to the Controller's <home>/lib/patches directory.

...

-BackupDir <String>
If a backup directory is specified then an a Controller's existing installation directory home and data directories will be added to a backup file files in this directory.
The backup file type will be is .tar.gz for Unix and .zip for Windows.

File names are created according to the pattern:

* backup_js7_controller.<hostname>.<release>.home.<yyyy>-<MM>-<dd>T<hh>-<mm>-<ss>.tar.gz|.zip.tar.gz
* backup_js7_controller.<hostname>.<release>.data.<yyyy>-<MM>-<dd>T<hh>-<mm>-<ss>.tar.gz|.tar.gz

For example: backup_js7_controller.centostest_primary.2.3.1.home.2022-03-19T20-50-45.tar.gz

...

-------------------------- EXAMPLE BEISPIEL 1 --------------------------

PS C:\> Install-JS7Controller.ps1 -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" -Data "C:\ProgramData\sos-berlin.com\js7\controller" -Tarball /tmp/js7_controller_windows.2.5.1.zip -HttpPort 4444 -MakeDirs

...

-------------------------- EXAMPLE BEISPIEL 2 --------------------------

PS C:\> Install-JS7Controller.ps1 -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" -Data "C:\ProgramData\sos-berlin.com\js7\controller" -Tarball /tmp/js7_controller_windows.2.5.1.zip -BackupDir /tmp/backups -LogDir /tmp/logs -HttpPort 4444 -MakeDirs

...

-------------------------- EXAMPLE BEISPIEL 3 --------------------------

PS C:\> Install-JS7Controller.ps1 -HomeDir "C:\Program Files\sos-berlin.com\js7\controller" -Data "C:\ProgramData\sos-berlin.com\js7\controller" -Tarball /tmp/js7_controller_windows.2.5.1.zip -HttpPort localhost:4444 -HttpsPort apmacwin:4444 -JavaHome "C:\Program Files\Java\jdk-11.0.12+7-jre" -JavaOptions "-Xms100m -Xmx256m" -MakeDirs

...