Skip to content

Commit

Permalink
Merge pull request #28 from IBM/dariuszglocki
Browse files Browse the repository at this point in the history
9.2.30 ILMT playbooks release
  • Loading branch information
DariuszGlocki authored Dec 9, 2022
2 parents 18d3700 + 3a6c1c6 commit 68cc795
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Disconnected scans allow for discovering software and hardware inventory by running scripts that are provided in the disconnected scanner package. The scripts initiate software and capacity scans, and create a package with scan results that you later need to upload to the License Metric Tool server. You can automate management of disconnected scans by using [Ansible](https://docs.ansible.com/ansible/latest/index.html#about-ansible).

The current version of License Metric Tool playbooks is **9.2.29**
The current version of License Metric Tool playbooks is **9.2.30**


## Prerequisites
Expand All @@ -17,7 +17,7 @@ The current version of License Metric Tool playbooks is **9.2.29**

- **Supported operating systems**

Playbooks that are delivered with License Metric Tool are supported on AIX, Linux, Solaris and Windows. They are not supported on HP-UX and IBM i. For information about exact versions, see the [list of operating systems that are supported by the disconnected scanner](https://www.ibm.com/support/pages/node/561443).
Playbooks that are delivered with License Metric Tool are supported on AIX, Linux, Solaris and Windows. They are not supported on IBM i. For information about exact versions, see the [list of operating systems that are supported by the disconnected scanner](https://www.ibm.com/support/pages/node/561443).


<br>
Expand Down
3 changes: 1 addition & 2 deletions docs/doc_playbooks_list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License Metric Tool playbooks

License Metric Tool playbooks are supported on operating systems that are supported by the disconnected scanner except for **HP-UX** and **IBM i**. For a list of supported operating systems, see: [IBM License Metric Tool 9.2 - Supported Operating Systems](https://ibm.biz/LMT_supported_OS).
License Metric Tool playbooks are supported on operating systems that are supported by the disconnected scanner except for **IBM i**. For a list of supported operating systems, see: [IBM License Metric Tool 9.2 - Supported Operating Systems](https://ibm.biz/LMT_supported_OS).

<table>

Expand Down Expand Up @@ -72,7 +72,6 @@ License Metric Tool playbooks are supported on operating systems that are suppor
<li><b>[Linux]</b> 60 MB</li>
<li><b>[Windows]</b> 80 MB</li>
<li><b>[AIX]</b> 100 MB</li>
<li><b>[HP-UX]</b> 100 MB</li>
<li><b>[Solaris]</b> 100 MB</li>
</ul>
5. The disconnected scanner package that is suitable for the operating system of the managed node is uploaded to the following directory:<br/>
Expand Down
21 changes: 2 additions & 19 deletions roles/ilmt_scanner/tasks/install_scanner_unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
ansible_facts['os_family'] == 'Suse' or
ansible_facts['os_family'] == 'Debian' or
ansible_facts['os_family'] == 'AIX' or
ansible_facts['os_family'] == 'Solaris' or
ansible_facts['os_family'] == 'HP-UX')
ansible_facts['os_family'] == 'Solaris')

- name: "Set platform fact on UNIX/Linux endpoints."
set_fact:
lmt_scanner_platform: '{{ {"RedHat": "linux", "Suse": "linux", "Debian": "linux", "AIX": "aix",
"Solaris": "solaris", "HP-UX": "hp-ux"}[ansible_facts["os_family"]] }}'
"Solaris": "solaris"}[ansible_facts["os_family"]] }}'

- name: "Check if {{ lmt_scanner_path_unix }} directory exists on UNIX/Linux endpoints"
stat:
Expand Down Expand Up @@ -113,22 +112,6 @@
lmt_scanner_aix_scanner_minimum_disk_space | int
when: lmt_scanner_platform == 'aix'

- name: "Check if there is enough space to install scanner on HPUX Platform"
block:
- name: "Gather disk stats"
shell: df -m "{{ unix_root_dir }}" --total | grep -i total |
awk '{print $4}'
register: hpux_available_disk_space

- name: Fail when file size exceeds on HPUX
fail:
msg: 'Not Enough Disk space to Install Disconnected Scanner. Available
Disk Space is: {{ hpux_available_disk_space.stdout }} MB, Required
Disk Space is : {{ lmt_scanner_linux_scanner_minimum_disk_space }} MB'
when: hpux_available_disk_space.stdout | int <
lmt_scanner_linux_scanner_minimum_disk_space | int
when: lmt_scanner_platform == 'hpux'

- name: "Create disconnected scanner directory on UNIX/Linux endpoints"
file:
path: "{{ lmt_scanner_path_unix }}"
Expand Down
4 changes: 1 addition & 3 deletions roles/ilmt_scanner/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ lmt_scanner_linux_scanner_minimum_disk_space: 100
lmt_scanner_solaris_scanner_minimum_disk_space: 100
# required_aix_space_in_MBs
lmt_scanner_aix_scanner_minimum_disk_space: 100
# required_hpux_space_in_MBs
lmt_scanner_hpux_scanner_minimum_disk_space: 100
# required_ibmi_space_in_MBs
lmt_scanner_ibmi_scanner_minimum_disk_space: 120
# Playbooks version - should be in-line with LMT server version and upgraded during each release
lmt_playbooks_version: "9.2.29.0"
lmt_playbooks_version: "9.2.30.0"

0 comments on commit 68cc795

Please sign in to comment.