-
Notifications
You must be signed in to change notification settings - Fork 13
/
lmt_inventory_template.yml
420 lines (388 loc) · 23.9 KB
/
lmt_inventory_template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
---
all:
hosts:
lmt_server:
ansible_host: localhost
ansible_connection: local
# custom name of your unix/linux endpoint 1
unix1:
ansible_host: <your_unix1_hostname_or_ip>
ansible_user: <your_unix1_user_name>
# custom name of your unix/linux endpoint 2
unix2:
ansible_host: <your_unix2_hostname_or_ip>
ansible_user: <your_unix2_user_name>
# path on Unix/Linux where scan result packages are generated by the disconnected scanner - set it on endpoint level if a specific endpoint has a different path
# lmt_scanner_output_path_unix: <your_custom_scanner_output_path_on_unix2_host>
# custom name of your windows endpoint 1
windows1:
ansible_host: <your_windows1_hostname_or_ip>
ansible_user: <your_windows1_user_name>
ansible_password: <your_windows1_user_password>
# Windows setup requires more settings and configuration, refer to the following links for a detailed information:
# https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup
# https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html
# path on Windows where scan result packages are generated by the disconnected scanner - set it on endpoint level if a specific Windows endpoint has a different path
# lmt_scanner_output_path_windows: <your_custom_scanner_output_path_on_windows1_host>
vars:
# lmt_local_file_storage_path:
#####################################################################################
## Parameter | lmt_local_file_storage_path
##===================================================================================
## Default Value | "./lmt_file_storage"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path on a the control node where results packages from all the endpoints
## are stored. If not defined the default ./lmt_file_storage is used, which
## is created as a subdirectory of a directory where playbooks are located.
#####################################################################################
# lmt_scanner_path_windows:
#####################################################################################
## Parameter | lmt_scanner_path_windows
##===================================================================================
## Default Value | "{{ ansible_env['ProgramFiles'] }}\\ibm\\LMTScanner"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path on the Windows endpoints where scanner will be installed.
#####################################################################################
# lmt_scanner_output_path_windows:
#####################################################################################
## Parameter | lmt_scanner_output_path_windows
##===================================================================================
## Default Value | "{{ lmt_scanner_path_windows }}/output"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path on the Windows endpoints where the scan results are generated by the
## scanner.
#####################################################################################
# lmt_scanner_path_unix:
#####################################################################################
## Parameter | lmt_scanner_path_unix
##===================================================================================
## Default Value | "/var/opt/ibm/LMTScanner"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path on the Unix/Linux endpoints where scanner will be installed.
#####################################################################################
# lmt_scanner_output_path_unix:
#####################################################################################
## Parameter | lmt_scanner_output_path_unix
##===================================================================================
## Default Value | "{{ lmt_scanner_path_unix }}/output"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path on the Unix/Linux endpoints where the scan results are generated by
## the scanner.
#####################################################################################
# lmt_server_path:
#####################################################################################
## Parameter | lmt_server_path
##===================================================================================
## Default Value | [Windows] "{{ ansible_env['ProgramFiles'] }}\\ibm\\LMT"
## | [Linux/Unix] "/opt/ibm/LMT"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path to main directory of LMT Server on 'lmt_server' node.
#####################################################################################
# lmt_server_port: 9081
#####################################################################################
## Parameter | lmt_server_port
##===================================================================================
## Default Value | 9081
##===================================================================================
## Description:
## Port number of the License Metric Tool server. It is used to connect
## to the License Metric Tool server API while decommissioning computers.
#####################################################################################
# lmt_server_token:
#####################################################################################
## Parameter | lmt_server_token
##===================================================================================
## Default Value | Empty (none)
##===================================================================================
## Description:
## API token of the License Metric Tool server.If the token is defined,
## the disconnected computer is automatically decommissioned from
## the License Metric Tool server during scanner uninstallation.
#####################################################################################
# lmt_server_datasource_path:
#####################################################################################
## Parameter | lmt_server_datasource_path
##===================================================================================
## Default Value | [Windows] "{{ lmt_server_path }}\\datasource"
## | [Linux/Unix] "{{ lmt_server_path }}/datasource"
## Possible Values | Directory name (string)
##===================================================================================
## Description:
## Path to a disconnected datasource on 'lmt_server' node.
#####################################################################################
# lmt_scanner_setup_timeout:
#####################################################################################
## Parameter | lmt_scanner_setup_timeout
##===================================================================================
## Default Value | 300
## Possible Values | Number
##===================================================================================
## Description:
## Number of seconds after which the scanner setup (and uninstaller) will be
## terminated reported as failed if not finish within defined period.
#####################################################################################
#####################################################################################
## Disconnected scanner setup specific settings below ##
## Following parameters are not relevant for collector playbook ##
#####################################################################################
# lmt_scanner_solaris_dsd_mode:
#####################################################################################
## Parameter | lmt_scanner_solaris_dsd_mode
##===================================================================================
## Corresponds to | DSD_MODE env variable during disconnected scanner install
##===================================================================================
## Default Value | false
## Possible Values | true/false
##===================================================================================
## Description:
## Information whether Solaris system is in the DSD domain, applicable only
## for Solaris OS nodes.
#####################################################################################
#lmt_scanner_zlinux_machine_type:
#lmt_scanner_zlinux_processor_type:
#lmt_scanner_zlinux_shared_pool_capacity:
#lmt_scanner_zlinux_system_active_processors:
#####################################################################################
## Description:
## Set of parameters that describes underlying hardware of the System z host
## on which ILMT zLinux scanner is going is to be installed that needs to be
## defined in case when automatic capacity configuration is not supported.
##
## Automatic capacity configuration is supported on Linux on z/KVM and on
## System z10 starting from model E64 (type 2097) mainframes with z/VM 6.3
## and later that supports the Store Hypervisor Information (STHYI)
## instruction.
## Additionally, global performance data control option must be set in HMC for
## LPARs for automatic capacity configuration to work.
##
## An example for z9 machine with 12 IFL processors running on a shared pool
## with a capacity of 20, set the variables as follows:
## lmt_scanner_zlinux_machine_type: "z9"
## lmt_scanner_zlinux_processor_type: "IFL"
## lmt_scanner_zlinux_shared_pool_capacity: "20"
## lmt_scanner_zlinux_system_active_processors: "12"
#####################################################################################
# lmt_scanner_software_scans_enabled:
#####################################################################################
## Parameter | lmt_scanner_software_scans_enabled
##===================================================================================
## Corresponds to | SW_SCAN_SCHEDULE_ENABLED disconnected scanner parameter
##===================================================================================
## Default Value | true
## Possible Values | true/false
##===================================================================================
## Description:
## Enables scheduling software scans in cron. If you set the value
## of this parameter to TRUE, the first software scan is initiated after
## you setup the scanner. Subsequent scans run with the frequency that
## is set in the lmt_scanner_software_scans_frequency parameter.
## Software scan after each execution will automatically trigger pack results.
#####################################################################################
# lmt_scanner_software_scans_frequency:
#####################################################################################
## Parameter | lmt_scanner_software_scans_frequency
##===================================================================================
## Corresponds to | SW_SCAN_FREQUENCY disconnected scanner parameter
##===================================================================================
## Default Value | WEEKLY
## Possible Values | DAILY/WEEKLY
##===================================================================================
## Description:
## Defines the frequency of software scans, either daily or weekly.
#####################################################################################
# lmt_scanner_software_scan_day_of_week:
#####################################################################################
## Parameter | lmt_scanner_software_scan_day_of_week
##===================================================================================
## Corresponds to | SW_SCAN_DAY_OF_WEEK disconnected scanner parameter
##===================================================================================
## Default Value | EMPTY
## Possible Values | EMPTY/MON/TUE/WED/THU/FRI/SAT/SUN
##===================================================================================
## Description:
## Defines the day of the week on which the weekly scan will run.
## This parameter is relevant only if the lmt_scanner_software_scans_frequency
## parameter is set to WEEKLY. By default, this parameter is empty which means
## that the weekly scan will be scheduled starting from the time when the
## install or upgrade or reconfigure playbook was run.
#####################################################################################
# lmt_scanner_software_scan_local_time:
#####################################################################################
## Parameter | lmt_scanner_software_scan_local_time
##===================================================================================
## Corresponds to | SW_SCAN_LOCAL_TIME disconnected scanner parameter
##===================================================================================
## Default Value | EMPTY
## Possible Values | EMPTY or time in the "HH:MM" format
##===================================================================================
## Description:
## Defines the time (hour and minutes) during the day in the LOCAL time zone
## of manage node when the scheduled software scan (weekly or daily) will run.
## By default, this parameter is empty which means that the scan will start at
## the time of the day when the install or upgrade or reconfigure playbook was
## run.
##
## Example:
## lmt_scanner_software_scan_local_time: "20:30"
## Note: Ensure the time string is enclosed in quotation marks.
#####################################################################################
# lmt_scanner_software_scan_cpu_threshold_percentage:
#####################################################################################
## Parameter | lmt_scanner_software_scan_cpu_threshold_percentage
##===================================================================================
## Corresponds to | SW_SCAN_CPU_THRESHOLD_PERCENTAGE disconnected scanner parameter
##===================================================================================
## Default Value | EMPTY
## Possible Values | EMPTY or 5-100
##===================================================================================
## Description:
## Limits the amount of processor resources that the scanner consumes. By default,
## the value is empty which indicates that the scan can consume up to 100%
## of a single CPU that is available to the scanner. The higher value you specify
## as the threshold, the higher is the consumption limit. For example,
## if you specify 75, scanner processes use the average of 75% of a single CPU
## that is available on the target computer.
##
## Important: Setting the threshold does not guarantee that CPU consumption is
## always below the specified value. It fluctuates around that value, sometimes
## exceeding it and sometimes dropping below it. Temporary peaks are expected.
## Setting the threshold might lengthen the time of the scan.
#####################################################################################
# lmt_scanner_daily_pack_results_enabled:
#####################################################################################
## Parameter | lmt_scanner_daily_pack_results_enabled
##===================================================================================
## Corresponds to | DAILY_PACK_RESULTS_CREATION_ENABLED disconnected scanner
## | parameter
##===================================================================================
## Default Value | true
## Possible Values | true/false
##===================================================================================
## Description:
## Enables scheduling of a daily output package creation.
## If you set the value of this parameter to true, the first pack results
## is initiated 23 hours after you install the scanner.
## Subsequent packages will be generated with the daily frequency.
#####################################################################################
#lmt_scanner_public_cloud_type:
#####################################################################################
## Parameter | lmt_scanner_public_cloud_type
##===================================================================================
## Corresponds to | PUBLIC_CLOUD_TYPE disconnected scanner parameter
##===================================================================================
## Default Value | Empty (none)
## Possible Values | Name of a supported public cloud:
## | "IBM Cloud Virtual Server"
## | "IBM Power Virtual Server"
## | "IBM SoftLayer"
## | "IBM Cloud LinuxONE VS"
## | "Microsoft Azure"
## | "Amazon EC2"
## | "Google Compute Engine"
## | "Oracle Compute Instance"
## | "Alibaba Elastic Compute Service"
## | "Tencent Cloud Server Instance"
## | "NEC Cloud IaaS Instance"
## | "Fujitsu Cloud IaaS Instance"
## | "NTT Enterprise Cloud Server"
## | "NTT IaaS Powered by VMware"
## | "NTT Data"
## | "KDDI Virtual Server"
##===================================================================================
## Description:
## Specifies the type of a public cloud on which the computer is running.
## It allows for properly counting the number of Processor Value Units (PVUs)
## per virtual core.
##
## Example:
## lmt_scanner_public_cloud_type: "Microsoft Azure"
## Note: Ensure the name of the public cloud is enclosed in quotation marks.
##
## For more information about supported types of public clouds, see:
## https://ibm.biz/LMT_public_clouds_disconnected.
#####################################################################################
#lmt_scanner_virt_host_scan_enabled: false
#####################################################################################
## Parameter | lmt_scanner_virt_host_scan_enabled
##==============================================================================
## Corresponds to | VIRTUALIZATION_HOST_SCAN_ENABLED disconnected scanner
## | parameter
##===================================================================================
## Default Value | false
## Possible Values | true/false
##===================================================================================
## Description:
## You can use this option only on Linux.
##
## Enables capacity scan on the virtualization host to retrieve capacity data
## from all virtual machines that are managed by that host.
##
## After this scan is enabled, it becomes a part of the regular capacity scan.
##
## Supported virtualization technologies:
## * Xen on Linux x86
## * KVM on Linux x86
## * KVM on Power Linux
##
## Prerequisites on the KVM host:
## * Operating system: Linux x86 or ppc64
## * Libvirt-client library installed on the host (virsh command available)
## or xl command available
## * In case of containerization technology usage: Podman or Docker:
## one of following actions takes place:
## ** if one of recommended nova_virtqemud or nova_libvirt containers is
## running, the virsh scan is executed in the first one found
## ** if one of recommended nova_virtqemud or nova_libvirt images has
## a running container, the virsh scan is executed in the first one
## which has Libvirst/virsh command installed
## ** if any of running containers has Libvirst/virsh command installed,
## the virsh scan is executed in the first one found
## * Libxml2 library installed on the host (xmllint command available)
## * Bash shell available
##
## Prerequisites on the Xen host:
## It is recommended to collect capacity data from Xen by using the
## VM Manager Tool instead of setting this parameter. For more information,
## see the product documentation.
#####################################################################################
#lmt_scanner_collect_host_hostname: false
#####################################################################################
## Parameter | lmt_scanner_collect_host_hostname
##===================================================================================
## Corresponds to | COLLECT_HOST_HOSTNAME disconnected scanner parameter
##===================================================================================
## Default Value | false
## Possible Values | true/false
##===================================================================================
## Description:
## Set the value of this parameter to TRUE to collect information about
## host names of virtualization hosts during the virtualization host scan.
## The lmt_scanner_virt_host_scan_enabled parameter must be set to TRUE before
## you can enable collection of host names.
#####################################################################################
#lmt_scanner_docker_scan_enabled: false
#####################################################################################
## Parameter | lmt_scanner_docker_scan_enabled
##===================================================================================
## Corresponds to | DOCKER_SCAN_ENABLED disconnected scanner parameter
##===================================================================================
## Default Value | false
## Possible Values | true/false
##===================================================================================
## Description:
## This parameter only applies to machines with Linux operating system.
## Set the value of this parameter to TRUE to enable the scan of all Docker
## containers that are deployed on the target managed node.
#####################################################################################