mas-cli 13.20.0__tar.gz → 13.21.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mas-cli might be problematic. Click here for more details.

Files changed (116) hide show
  1. {mas_cli-13.20.0 → mas_cli-13.21.0}/PKG-INFO +1 -1
  2. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/__init__.py +1 -1
  3. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/cli.py +1 -1
  4. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/app.py +2 -2
  5. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/argBuilder.py +3 -3
  6. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/argParser.py +3 -0
  7. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/params.py +3 -3
  8. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/db2Settings.py +50 -29
  9. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/ibm-mas-tekton.yaml +1728 -164
  10. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/upgrade/app.py +41 -8
  11. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/upgrade/argParser.py +7 -0
  12. mas_cli-13.21.0/src/mas/cli/upgrade/settings/__init__.py +19 -0
  13. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas_cli.egg-info/PKG-INFO +1 -1
  14. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas_cli.egg-info/SOURCES.txt +1 -0
  15. {mas_cli-13.20.0 → mas_cli-13.21.0}/MANIFEST.in +0 -0
  16. {mas_cli-13.20.0 → mas_cli-13.21.0}/README.rst +0 -0
  17. {mas_cli-13.20.0 → mas_cli-13.21.0}/pyproject.toml +0 -0
  18. {mas_cli-13.20.0 → mas_cli-13.21.0}/setup.cfg +0 -0
  19. {mas_cli-13.20.0 → mas_cli-13.21.0}/setup.py +0 -0
  20. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/displayMixins.py +0 -0
  21. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/gencfg.py +0 -0
  22. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/__init__.py +0 -0
  23. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/catalogs.py +0 -0
  24. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/__init__.py +0 -0
  25. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/additionalConfigs.py +0 -0
  26. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/kafkaSettings.py +0 -0
  27. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/manageSettings.py +0 -0
  28. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/mongodbSettings.py +0 -0
  29. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/settings/turbonomicSettings.py +0 -0
  30. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/install/summarizer.py +0 -0
  31. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/jdbccfg.yml.j2 +0 -0
  32. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml +0 -0
  33. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-bascfg.yml +0 -0
  34. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-coreidp.yml +0 -0
  35. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-actions.yml +0 -0
  36. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-auth.yml +0 -0
  37. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-datapower.yml +0 -0
  38. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-devops.yml +0 -0
  39. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-dm.yml +0 -0
  40. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-dsc.yml +0 -0
  41. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-edgeconfig.yml +0 -0
  42. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-fpl.yml +0 -0
  43. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-guardian.yml +0 -0
  44. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-iot.yml +0 -0
  45. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-mbgx.yml +0 -0
  46. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-mfgx.yml +0 -0
  47. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-monitor.yml +0 -0
  48. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-orgmgmt.yml +0 -0
  49. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-provision.yml +0 -0
  50. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-registry.yml +0 -0
  51. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-state.yml +0 -0
  52. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-iot-webui.yml +0 -0
  53. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-healthextaccelerator.yml +0 -0
  54. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-healthextworkspace.yml +0 -0
  55. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-imagestitching.yml +0 -0
  56. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-manageaccelerators.yml +0 -0
  57. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-manageapp.yml +0 -0
  58. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-manageworkspace.yml +0 -0
  59. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-manage-slackproxy.yml +0 -0
  60. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-pushnotificationcfg.yml +0 -0
  61. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-scimcfg.yml +0 -0
  62. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-slscfg.yml +0 -0
  63. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-smtpcfg.yml +0 -0
  64. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-suite.yml +0 -0
  65. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-mas-visualinspection.yml +0 -0
  66. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/best-effort/ibm-sls-licenseservice.yml +0 -0
  67. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-data-dictionary-assetdatadictionary.yml +0 -0
  68. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-bascfg.yml +0 -0
  69. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-coreidp.yml +0 -0
  70. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-actions.yml +0 -0
  71. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-auth.yml +0 -0
  72. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-datapower.yml +0 -0
  73. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-devops.yml +0 -0
  74. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-dm.yml +0 -0
  75. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-dsc.yml +0 -0
  76. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-edgeconfig.yml +0 -0
  77. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-fpl.yml +0 -0
  78. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-guardian.yml +0 -0
  79. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-iot.yml +0 -0
  80. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-mbgx.yml +0 -0
  81. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-mfgx.yml +0 -0
  82. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-monitor.yml +0 -0
  83. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-orgmgmt.yml +0 -0
  84. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-provision.yml +0 -0
  85. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-registry.yml +0 -0
  86. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-state.yml +0 -0
  87. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-iot-webui.yml +0 -0
  88. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-healthextaccelerator.yml +0 -0
  89. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-healthextworkspace.yml +0 -0
  90. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-imagestitching.yml +0 -0
  91. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-manageaccelerators.yml +0 -0
  92. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-manageapp.yml +0 -0
  93. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-manageworkspace.yml +0 -0
  94. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-manage-slackproxy.yml +0 -0
  95. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-pushnotificationcfg.yml +0 -0
  96. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-scimcfg.yml +0 -0
  97. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-slscfg.yml +0 -0
  98. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-smtpcfg.yml +0 -0
  99. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-suite.yml +0 -0
  100. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-mas-visualinspection.yml +0 -0
  101. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/pod-templates/guaranteed/ibm-sls-licenseservice.yml +0 -0
  102. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/templates/suite_mongocfg.yml.j2 +0 -0
  103. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/uninstall/__init__.py +0 -0
  104. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/uninstall/app.py +0 -0
  105. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/uninstall/argParser.py +0 -0
  106. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/update/__init__.py +0 -0
  107. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/update/app.py +0 -0
  108. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/update/argParser.py +0 -0
  109. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/upgrade/__init__.py +0 -0
  110. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas/cli/validators.py +0 -0
  111. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas-cli +0 -0
  112. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas_cli.egg-info/dependency_links.txt +0 -0
  113. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas_cli.egg-info/requires.txt +0 -0
  114. {mas_cli-13.20.0 → mas_cli-13.21.0}/src/mas_cli.egg-info/top_level.txt +0 -0
  115. {mas_cli-13.20.0 → mas_cli-13.21.0}/test/test_help.py +0 -0
  116. {mas_cli-13.20.0 → mas_cli-13.21.0}/test/test_install.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mas-cli
3
- Version: 13.20.0
3
+ Version: 13.21.0
4
4
  Summary: Python Admin CLI for Maximo Application Suite
5
5
  Home-page: https://github.com/ibm-mas/cli
6
6
  Author: David Parker
@@ -8,4 +8,4 @@
8
8
  #
9
9
  # *****************************************************************************
10
10
 
11
- __version__ = "13.20.0" # Python module compatible semver
11
+ __version__ = "13.21.0" # Python module compatible semver
@@ -117,7 +117,7 @@ class BaseApp(PrintMixin, PromptMixin):
117
117
  logging.getLogger('asyncio').setLevel(logging.INFO)
118
118
 
119
119
  # Supports extended semver, unlike mas.cli.__version__
120
- self.version = "13.20.0"
120
+ self.version = "13.21.0"
121
121
  self.h1count = 0
122
122
  self.h2count = 0
123
123
 
@@ -626,6 +626,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
626
626
  self.installManage = True
627
627
  self.isManageFoundation = True
628
628
  self.setParam("is_full_manage", "false")
629
+ self.setParam("mas_app_settings_aio_flag", "false")
629
630
  self.manageAppName = "Manage foundation"
630
631
  self.printDescription([f"{self.manageAppName} installs the following capabilities: User, Security groups, Application configurator and Mobile configurator."])
631
632
  else:
@@ -634,8 +635,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
634
635
  if self.installManage:
635
636
  self.configAppChannel("manage")
636
637
 
637
- # Predict for MAS 8.10 is effectively unsupported now, because it has not shipped support for Cloud Pak for Data 4.8 as of June 2023 catalog update
638
- if self.installIoT and self.installManage and self.getParam("mas_channel") != "8.10.x":
638
+ if self.installIoT and self.installManage:
639
639
  self.installPredict = self.yesOrNo("Install Predict")
640
640
  else:
641
641
  self.installPredict = False
@@ -336,9 +336,9 @@ class installArgBuilderMixin():
336
336
  # Kafka - Event Streams
337
337
  # -----------------------------------------------------------------------------
338
338
  if self.getParam('eventstreams_instance_name') != "":
339
- command += f" --eventstreams-resource-group \"{self.getParam('eventstreams_resource_group')}\""
340
- command += f" --eventstreams-instance-name \"{self.getParam('eventstreams_instance_name')}\""
341
- command += f" --eventstreams-instance-location \"{self.getParam('eventstreams_instance_location')}\"{newline}"
339
+ command += f" --eventstreams-resource-group \"{self.getParam('eventstreams_resourcegroup')}\""
340
+ command += f" --eventstreams-instance-name \"{self.getParam('eventstreams_name')}\""
341
+ command += f" --eventstreams-instance-location \"{self.getParam('eventstreams_location')}\"{newline}"
342
342
 
343
343
  # COS
344
344
  # -----------------------------------------------------------------------------
@@ -960,16 +960,19 @@ mskArgGroup.add_argument(
960
960
  eventstreamsArgGroup = installArgParser.add_argument_group("Kafka - Event Streams")
961
961
  eventstreamsArgGroup.add_argument(
962
962
  "--eventstreams-resource-group",
963
+ dest="eventstreams_resourcegroup",
963
964
  required=False,
964
965
  help="Set IBM Cloud resource group to target the Event Streams instance provisioning"
965
966
  )
966
967
  eventstreamsArgGroup.add_argument(
967
968
  "--eventstreams-instance-name",
969
+ dest="eventstreams_name",
968
970
  required=False,
969
971
  help="Set IBM Event Streams instance name"
970
972
  )
971
973
  eventstreamsArgGroup.add_argument(
972
974
  "--eventstreams-instance-location",
975
+ dest="eventstreams_location",
973
976
  required=False,
974
977
  help="Set IBM Event Streams instance location"
975
978
  )
@@ -114,9 +114,9 @@ optionalParams = [
114
114
  "aws_msk_cidr_az3",
115
115
  "aws_msk_egress_cidr",
116
116
  "aws_msk_ingress_cidr",
117
- "eventstreams_resource_group",
118
- "eventstreams_instance_name",
119
- "eventstreams_instance_location",
117
+ "eventstreams_resourcegroup",
118
+ "eventstreams_name",
119
+ "eventstreams_location",
120
120
  # COS
121
121
  "cos_type",
122
122
  "cos_resourcegroup",
@@ -13,21 +13,26 @@ from prompt_toolkit import print_formatted_text
13
13
 
14
14
 
15
15
  class Db2SettingsMixin():
16
- def configDb2(self) -> None:
17
- self.printH1("Configure Databases")
16
+ # In silentMode, no prompts will show up for "happy path" DB2 configuration scenarios. Prompts will still show up when an input is absolutely required
17
+ # Settings under showAdvancedOptions are always prompted
18
+ def configDb2(self, silentMode=False) -> None:
19
+ if not silentMode:
20
+ self.printH1("Configure Databases")
18
21
  # The channel used for Db2 used has not changed since the January 2024 catalog update
19
22
  self.params["db2_channel"] = "v110509.0"
20
23
 
21
24
  # If neither Iot or Manage is being installed, we have nothing to do
22
25
  if not self.installIoT and not self.installManage:
23
- print_formatted_text("No applications have been selected that require a Db2 installation")
24
- self.setParam("db2_action_system", "none")
25
- self.setParam("db2_action_manage", "none")
26
+ if not silentMode:
27
+ print_formatted_text("No applications have been selected that require a Db2 installation")
28
+ self.setParam("db2_action_system", "none")
29
+ self.setParam("db2_action_manage", "none")
26
30
  return
27
31
 
28
32
  # For now we are limiting users to bring your own database for Manage on s390x
29
33
  # Eventually we will be able to remove this clause and allow the standard logic to work for both s390x and amd64
30
34
  if self.architecture == "s390x" and self.installManage:
35
+ # silentMode does not apply for s390x because it requires interaction when selecting local config directory
31
36
  self.printDescription([
32
37
  "Installation of a Db2 instance using the IBM Db2 Universal Operator is not currently supported on s390x, please provide configuration details for the database you wish to use.",
33
38
  ])
@@ -51,21 +56,26 @@ class Db2SettingsMixin():
51
56
 
52
57
  # Proceed as normal
53
58
  # We know we are installing either IoT or Manage, and on amd64 target architecture
54
- self.printDescription([
55
- f"The installer can setup one or more IBM Db2 instances in your OpenShift cluster for the use of applications that require a JDBC datasource (IoT, {self.manageAppName}, Monitor, & Predict) or you may choose to configure MAS to use an existing database"
56
- ])
59
+ if not silentMode:
60
+ self.printDescription([
61
+ f"The installer can setup one or more IBM Db2 instances in your OpenShift cluster for the use of applications that require a JDBC datasource (IoT, {self.manageAppName}, Monitor, & Predict) or you may choose to configure MAS to use an existing database"
62
+ ])
57
63
 
58
64
  self.setDB2DefaultSettings()
59
65
 
60
66
  instanceId = self.getParam('mas_instance_id')
61
67
  # Do we need to set up an IoT database?
62
68
  if self.installIoT:
63
- self.printH2("Database Configuration for Maximo IoT")
64
- self.printDescription([
65
- "Maximo IoT requires a shared system-scope Db2 instance because others application in the suite require access to the same database source",
66
- " - Only IBM Db2 is supported for this database"
67
- ])
68
- if self.yesOrNo("Create system Db2 instance using the IBM Db2 Universal Operator"):
69
+ if not silentMode:
70
+ self.printH2("Database Configuration for Maximo IoT")
71
+ self.printDescription([
72
+ "Maximo IoT requires a shared system-scope Db2 instance because others application in the suite require access to the same database source",
73
+ " - Only IBM Db2 is supported for this database"
74
+ ])
75
+ createSystemDb2UsingUniversalOperator = True
76
+ if not silentMode:
77
+ createSystemDb2UsingUniversalOperator = self.yesOrNo("Create system Db2 instance using the IBM Db2 Universal Operator")
78
+ if createSystemDb2UsingUniversalOperator:
69
79
  self.setParam("db2_action_system", "install")
70
80
  else:
71
81
  self.setParam("db2_action_system", "byo")
@@ -85,28 +95,39 @@ class Db2SettingsMixin():
85
95
  self.setParam("db2_action_system", "none")
86
96
 
87
97
  if self.installManage:
88
- self.printH2(f"Database Configuration for Maximo {self.manageAppName}")
89
- self.printDescription([
90
- f"Maximo {self.manageAppName} can be configured to share the system Db2 instance or use it's own dedicated database:",
91
- " - Use of a shared instance has a significant footprint reduction but is only recommended for development/test/demo installs",
92
- " - In most production systems you will want to use a dedicated database",
93
- " - IBM Db2, Oracle Database, & Microsoft SQL Server are all supported database options"
94
- ])
98
+ if not silentMode:
99
+ self.printH2(f"Database Configuration for Maximo {self.manageAppName}")
100
+ self.printDescription([
101
+ f"Maximo {self.manageAppName} can be configured to share the system Db2 instance or use it's own dedicated database:",
102
+ " - Use of a shared instance has a significant footprint reduction but is only recommended for development/test/demo installs",
103
+ " - In most production systems you will want to use a dedicated database",
104
+ " - IBM Db2, Oracle Database, & Microsoft SQL Server are all supported database options"
105
+ ])
95
106
  # Determine whether to use the system or a dedicated database
96
- if self.installIoT and self.yesOrNo(f"Re-use System Db2 instance for {self.manageAppName} application"):
107
+ reuseSystemDb2 = False
108
+ if self.installIoT:
109
+ if not silentMode:
110
+ reuseSystemDb2 = self.yesOrNo(f"Re-use System Db2 instance for {self.manageAppName} application")
111
+ if reuseSystemDb2:
97
112
  # We are going to bind Manage to the system database, which has already been set up in the previous step
98
113
  self.setParam("mas_appws_bindings_jdbc_manage", "system")
99
114
  self.setParam("db2_action_manage", "none")
100
115
  else:
101
116
  self.setParam("mas_appws_bindings_jdbc_manage", "workspace-application")
102
- if self.yesOrNo(f"Create {self.manageAppName} dedicated Db2 instance using the IBM Db2 Universal Operator"):
117
+ createSystemDb2UsingUniversalOperator = True
118
+ if not silentMode:
119
+ createSystemDb2UsingUniversalOperator = self.yesOrNo(f"Create {self.manageAppName} dedicated Db2 instance using the IBM Db2 Universal Operator")
120
+ if createSystemDb2UsingUniversalOperator:
103
121
  self.setParam("db2_action_manage", "install")
104
- self.printDescription([
105
- f"Available Db2 instance types for {self.manageAppName}:",
106
- " 1. DB2 Warehouse (Default option)",
107
- " 2. DB2 Online Transactional Processing (OLTP)"
108
- ])
109
- self.promptForListSelect(message=f"Select the {self.manageAppName} dedicated DB2 instance type", options=["db2wh", "db2oltp"], param="db2_type", default="1")
122
+ if not silentMode:
123
+ self.printDescription([
124
+ f"Available Db2 instance types for {self.manageAppName}:",
125
+ " 1. DB2 Warehouse (Default option)",
126
+ " 2. DB2 Online Transactional Processing (OLTP)"
127
+ ])
128
+ self.promptForListSelect(message=f"Select the {self.manageAppName} dedicated DB2 instance type", options=["db2wh", "db2oltp"], param="db2_type", default="1")
129
+ else:
130
+ self.setParam("db2_type", "db2wh")
110
131
  else:
111
132
  workspaceId = self.getParam("mas_workspace_id")
112
133
  self.setParam("db2_action_manage", "byo")