How can I supply remote OS credentials to the following command?
cc exec provisioning bootstrap nodes nodeAlias
The manuals does not include these parameters. If I use an input file, the section
BASIC
PASSWORD
outlines the details. But not with the arguments supplied.
Any suggestions appreciated. To busy to decompile the source.
The errors in wrapper.log when using arguments:
com.softwareag.platform.management.common.exceptions.BadRequestException: Remote machine credentials are not provided.
Thanks for the tip Nikolay, but maybe I am missing the obvious here. The command line arguments do not include the remote OS credentials (i.e. the username and password arguments), - only the input file option does.
And I don’t want to use an input file since that would involve having to create about 50 different files for the various SPM nodes we need to create for the customer. It will be better handled through a single batch script with port numbers and credentials easily defined (once).
Notice that you have to provide repo.product and repo.fix that includes UM products and fixes as cc-* repos don’t
You can run the spm-layer first and then um-layer (or any other layer) second or you can run um-layer only. It will bootstrap spms first before performing UM setup.
Thanks Sergei, - I got it. I went down that route earlier but I could never get the node alias to be created as per my own definitions (the node was created based on the server name). For reference, this is the template def’s:
provision:
TST_SPM: #Environment
SPM_01: TST_SPM_01 # Layer and associated hardcoded SPM node (to be created)
If you want to have list of SPM’s with specified aliases other than hostnames you have to map them in your custom template using nodes section. This is the only way right now
Thanks for the answer, - it works ok without adding node names explicitly… If I first create the SPM nodes separately (separate composite template), I can then just reference them in the provisioning section when adding product installations:
Correct.
The node matching is done based on protocol://host:port (version and installDir)
If pre-registered SPM is already running and listening on the target and matches the target installDir and version, then it will be re-used.