mas-cli 13.16.0__py3-none-any.whl → 13.17.2__py3-none-any.whl
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.
- mas/cli/__init__.py +1 -1
- mas/cli/aiservice/install/__init__.py +11 -0
- mas/cli/aiservice/install/app.py +810 -0
- mas/cli/aiservice/install/argBuilder.py +232 -0
- mas/cli/aiservice/install/argParser.py +742 -0
- mas/cli/aiservice/install/params.py +120 -0
- mas/cli/aiservice/install/summarizer.py +193 -0
- mas/cli/cli.py +19 -3
- mas/cli/gencfg.py +23 -0
- mas/cli/install/app.py +129 -30
- mas/cli/install/argBuilder.py +57 -9
- mas/cli/install/argParser.py +116 -140
- mas/cli/install/catalogs.py +7 -4
- mas/cli/install/params.py +20 -3
- mas/cli/install/settings/additionalConfigs.py +4 -0
- mas/cli/install/settings/db2Settings.py +82 -36
- mas/cli/install/settings/manageSettings.py +9 -33
- mas/cli/install/settings/mongodbSettings.py +1 -1
- mas/cli/install/summarizer.py +36 -27
- mas/cli/templates/facilities-configs.yml.j2 +25 -0
- mas/cli/templates/ibm-mas-tekton.yaml +11693 -4677
- mas/cli/update/app.py +11 -6
- mas/cli/upgrade/app.py +42 -8
- mas/cli/upgrade/argParser.py +7 -0
- mas/cli/upgrade/settings/__init__.py +19 -0
- mas/cli/validators.py +13 -0
- {mas_cli-13.16.0.data → mas_cli-13.17.2.data}/scripts/mas-cli +4 -0
- {mas_cli-13.16.0.dist-info → mas_cli-13.17.2.dist-info}/METADATA +1 -1
- {mas_cli-13.16.0.dist-info → mas_cli-13.17.2.dist-info}/RECORD +31 -23
- {mas_cli-13.16.0.dist-info → mas_cli-13.17.2.dist-info}/WHEEL +1 -1
- {mas_cli-13.16.0.dist-info → mas_cli-13.17.2.dist-info}/top_level.txt +0 -0
mas/cli/install/summarizer.py
CHANGED
|
@@ -70,6 +70,9 @@ class InstallSummarizerMixin():
|
|
|
70
70
|
elif self.getParam('dns_provider') == "":
|
|
71
71
|
pass
|
|
72
72
|
|
|
73
|
+
print()
|
|
74
|
+
self.printParamSummary("Configure Suite to run in IPV6", "enable_ipv6")
|
|
75
|
+
|
|
73
76
|
if self.getParam("mas_manual_cert_mgmt") != "":
|
|
74
77
|
print()
|
|
75
78
|
self.printSummary("Manual Certificates", self.manualCertsDir)
|
|
@@ -150,32 +153,6 @@ class InstallSummarizerMixin():
|
|
|
150
153
|
else:
|
|
151
154
|
self.printSummary("Visual Inspection", "Do Not Install")
|
|
152
155
|
|
|
153
|
-
def aibrokerSummary(self) -> None:
|
|
154
|
-
if self.installAiBroker:
|
|
155
|
-
self.printSummary("AI Broker", self.params["mas_app_channel_aibroker"])
|
|
156
|
-
print_formatted_text(HTML(" <SkyBlue>+ Maximo AI Broker Settings</SkyBlue>"))
|
|
157
|
-
self.printParamSummary(" + Storage provider", "mas_aibroker_storage_provider")
|
|
158
|
-
self.printParamSummary(" + Storage access key", "mas_aibroker_storage_accesskey")
|
|
159
|
-
self.printParamSummary(" + Storage secret key", "mas_aibroker_storage_secretkey")
|
|
160
|
-
self.printParamSummary(" + Storage host", "mas_aibroker_storage_host")
|
|
161
|
-
self.printParamSummary(" + Storage port", "mas_aibroker_storage_port")
|
|
162
|
-
self.printParamSummary(" + Storage ssl", "mas_aibroker_storage_ssl")
|
|
163
|
-
self.printParamSummary(" + Storage region", "mas_aibroker_storage_region")
|
|
164
|
-
self.printParamSummary(" + Storage pipelines bucket", "mas_aibroker_storage_pipelines_bucket")
|
|
165
|
-
self.printParamSummary(" + Storage tenants bucket", "mas_aibroker_storage_tenants_bucket")
|
|
166
|
-
self.printParamSummary(" + Storage templates bucket", "mas_aibroker_storage_templates_bucket")
|
|
167
|
-
self.printParamSummary(" + Watsonxai api key", "mas_aibroker_watsonxai_apikey")
|
|
168
|
-
self.printParamSummary(" + Watsonxai machine learning url", "mas_aibroker_watsonxai_url")
|
|
169
|
-
self.printParamSummary(" + Watsonxai project id", "mas_aibroker_watsonxai_project_id")
|
|
170
|
-
self.printParamSummary(" + Database host", "mas_aibroker_db_host")
|
|
171
|
-
self.printParamSummary(" + Database port", "mas_aibroker_db_port")
|
|
172
|
-
self.printParamSummary(" + Database user", "mas_aibroker_db_user")
|
|
173
|
-
self.printParamSummary(" + Database name", "mas_aibroker_db_database")
|
|
174
|
-
self.printParamSummary(" + Database Secretname", "mas_aibroker_db_secret_name")
|
|
175
|
-
self.printParamSummary(" + Database password", "mas_aibroker_db_secret_value")
|
|
176
|
-
else:
|
|
177
|
-
self.printSummary("AI Broker", "Do Not Install")
|
|
178
|
-
|
|
179
156
|
def manageSummary(self) -> None:
|
|
180
157
|
if self.installManage:
|
|
181
158
|
self.printSummary(f"{'Manage foundation' if self.getParam('is_full_manage') == 'false' else 'Manage'}", self.params["mas_app_channel_manage"])
|
|
@@ -199,6 +176,7 @@ class InstallSummarizerMixin():
|
|
|
199
176
|
self.printSummary(" + Tririga", "Enabled" if "tririga=" in self.getParam("mas_appws_components") else "Disabled")
|
|
200
177
|
self.printSummary(" + Utilities", "Enabled" if "utilities=" in self.getParam("mas_appws_components") else "Disabled")
|
|
201
178
|
self.printSummary(" + Workday Applications", "Enabled" if "workday=" in self.getParam("mas_appws_components") else "Disabled")
|
|
179
|
+
self.printSummary(" + AIP", "Enabled" if "aip=" in self.getParam("mas_appws_components") else "Disabled")
|
|
202
180
|
|
|
203
181
|
self.printParamSummary("+ Server bundle size", "mas_app_settings_server_bundles_size")
|
|
204
182
|
self.printParamSummary("+ Enable JMS queues", "mas_app_settings_default_jms")
|
|
@@ -214,6 +192,30 @@ class InstallSummarizerMixin():
|
|
|
214
192
|
else:
|
|
215
193
|
self.printSummary("Manage", "Do Not Install")
|
|
216
194
|
|
|
195
|
+
def facilitiesSummary(self) -> None:
|
|
196
|
+
# TODO: Fix type for storage sizes and max conn pool size
|
|
197
|
+
if self.installFacilities:
|
|
198
|
+
self.printSummary("Facilities", self.params["mas_app_channel_facilities"])
|
|
199
|
+
print_formatted_text(HTML(" <SkyBlue>+ Maximo Real Estate and Facilities Settings</SkyBlue>"))
|
|
200
|
+
self.printParamSummary(" + Size", "mas_ws_facilities_size")
|
|
201
|
+
self.printParamSummary(" + Routes Timeout", "mas_ws_facilities_routes_timeout")
|
|
202
|
+
self.printParamSummary(" + XML Extension", "mas_ws_facilities_liberty_extension_XML")
|
|
203
|
+
self.printParamSummary(" + AES vault secret name", "mas_ws_facilities_vault_secret")
|
|
204
|
+
# self.printParamSummary(" + Dedicated Workflow Agents", "mas_ws_facilities_dwfagents")
|
|
205
|
+
# self.printParamSummary(" + Maximum pool size connection ", "mas_ws_facilities_db_maxconnpoolsize")
|
|
206
|
+
self.printParamSummary(" + Log Storage Class ", "mas_ws_facilities_storage_log_class")
|
|
207
|
+
self.printParamSummary(" + Log Storage Mode", "mas_ws_facilities_storage_log_mode")
|
|
208
|
+
# self.printParamSummary(" + Log Storage Size", "mas_ws_facilities_storage_log_size")
|
|
209
|
+
self.printParamSummary(" + Userfiles Storage Class ", "mas_ws_facilities_storage_userfiles_class")
|
|
210
|
+
self.printParamSummary(" + User files Storage Mode", "mas_ws_facilities_storage_userfiles_mode")
|
|
211
|
+
# self.printParamSummary(" + User files Storage Size", "mas_ws_facilities_storage_userfiles_size")
|
|
212
|
+
if self.getParam("db2_action_facilities") == 'none':
|
|
213
|
+
self.printParamSummary(" + Dedicated DB2 Database", "No")
|
|
214
|
+
else:
|
|
215
|
+
self.printParamSummary(" + Dedicated DB2 Database", "db2_action_facilities")
|
|
216
|
+
else:
|
|
217
|
+
self.printSummary("Facilities", "Do Not Install")
|
|
218
|
+
|
|
217
219
|
def db2Summary(self) -> None:
|
|
218
220
|
if self.getParam("db2_action_system") == "install" or self.getParam("db2_action_manage") == "install":
|
|
219
221
|
self.printH2("IBM Db2 Univeral Operator Configuration")
|
|
@@ -350,6 +352,10 @@ class InstallSummarizerMixin():
|
|
|
350
352
|
self.printH2("Grafana")
|
|
351
353
|
self.printSummary("Install Grafana", "Install" if self.getParam("grafana_action") == "install" else "Do Not Install")
|
|
352
354
|
|
|
355
|
+
def installSummary(self) -> None:
|
|
356
|
+
self.printH2("Install Process")
|
|
357
|
+
self.printSummary("Wait for PVCs to bind", "No" if self.getParam("no_wait_for_pvc") else "Yes")
|
|
358
|
+
|
|
353
359
|
def displayInstallSummary(self) -> None:
|
|
354
360
|
self.printH1("Review Settings")
|
|
355
361
|
self.printDescription([
|
|
@@ -375,7 +381,7 @@ class InstallSummarizerMixin():
|
|
|
375
381
|
self.optimizerSummary()
|
|
376
382
|
self.assistSummary()
|
|
377
383
|
self.inspectionSummary()
|
|
378
|
-
self.
|
|
384
|
+
self.facilitiesSummary()
|
|
379
385
|
|
|
380
386
|
# Application Dependencies
|
|
381
387
|
self.mongoSummary()
|
|
@@ -385,3 +391,6 @@ class InstallSummarizerMixin():
|
|
|
385
391
|
self.cp4dSummary()
|
|
386
392
|
self.grafanaSummary()
|
|
387
393
|
self.turbonomicSummary()
|
|
394
|
+
|
|
395
|
+
# Install options
|
|
396
|
+
self.installSummary()
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
apiVersion: v1
|
|
2
|
+
kind: ConfigMap
|
|
3
|
+
metadata:
|
|
4
|
+
name: facilities-config
|
|
5
|
+
namespace: mas-{{ mas_instance_id }}-pipelines
|
|
6
|
+
data:
|
|
7
|
+
mas_ws_facilities_storage_log_size: |
|
|
8
|
+
{{ mas_ws_facilities_storage_log_size }}
|
|
9
|
+
mas_ws_facilities_storage_userfiles_size: |
|
|
10
|
+
{{ mas_ws_facilities_storage_userfiles_size }}
|
|
11
|
+
mas_ws_facilities_db_maxconnpoolsize: |
|
|
12
|
+
{{ mas_ws_facilities_db_maxconnpoolsize }}
|
|
13
|
+
mas_ws_facilities_dwfagents: |
|
|
14
|
+
{%- if mas_ws_facilities_dwfagents is defined and mas_ws_facilities_dwfagents != '' %}
|
|
15
|
+
{%- for agent in mas_ws_facilities_dwfagents %}
|
|
16
|
+
- name: "{{ agent.name }}"
|
|
17
|
+
members:
|
|
18
|
+
{%- for member in agent.members %}
|
|
19
|
+
- name: "{{ member.name }}"
|
|
20
|
+
class: "{{ member.class }}"
|
|
21
|
+
{%- endfor %}
|
|
22
|
+
{%- endfor %}
|
|
23
|
+
{%- else %}
|
|
24
|
+
[]
|
|
25
|
+
{% endif %}
|