cloud-native-toolkit / software-everywhere

Automation modules to deploy IBM Software on IBM Cloud, AWS, and Azure
https://modules.cloudnativetoolkit.dev
Apache License 2.0
9 stars 9 forks source link

Flag in cp4i setup-workspace script to bypass prompts #548

Closed triceam closed 2 years ago

triceam commented 2 years ago

Request from @nathanagood: Need a way to bypass user prompts for installing cp4i.
https://github.com/IBM/automation-integration-platform/

I will add a flag that can be used to specify individual layers. If any of the flags are present at execution it will include the layer, all non-specified flags will default to not be included. If any flags are present, there will be no prompts for individual layers. Specifying all flags would use the 280 bom (including all layers).

triceam commented 2 years ago

FYI: Added headless option for integration setup scripts. https://github.com/IBM/automation-integration-platform/releases/tag/v2.0.2

You can run the setup-workspace scripts without user prompting by using the -l command line argument as a comma separated list to specify the explicit layers by number.

For example, use layer 280 to specify all layers:

./setup-workspace-with-odf-or-portworx.sh -p ibm -s odf -n integration -l 280

Or, use individual layer numbers to only deploy those components.

./setup-workspace-with-odf-or-portworx.sh -p ibm -s odf -n integration -l 220,230,240

Layer numbers that can be used are:

Full Changelog: https://github.com/IBM/automation-integration-platform/compare/v2.0.1...v2.0.2