Skip to content

Commit bc393c7

Browse files
authored
Merge pull request #522 from rajan-mis/fal_master
GPFS kafka package installation time improvement
2 parents acf0830 + e24d8b2 commit bc393c7

File tree

3 files changed

+45
-15
lines changed

3 files changed

+45
-15
lines changed

roles/scale_fileauditlogging/node/tasks/install_repository.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010

1111
- name: install | file audit logging path
1212
set_fact:
13-
scale_fal_url: 'gpfs_rpms/rhel/'
14-
when: ansible_distribution in scale_rhel_distribution
13+
scale_fal_url: 'gpfs_rpms/rhel7/'
14+
when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '7'
15+
16+
- name: install | file audit logging path
17+
set_fact:
18+
scale_fal_url: 'gpfs_rpms/rhel8/'
19+
when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '8'
1520

1621
- name: install | file audit logging path
1722
set_fact:
@@ -20,7 +25,7 @@
2025

2126
- name: install | file audit logging path
2227
set_fact:
23-
scale_fal_url: 'gpfs_rpms/rhel/'
28+
scale_fal_url: 'gpfs_rpms/sles15/'
2429
when: ansible_distribution in scale_sles_distribution
2530

2631
- name: install | Configure GPFS Java YUM repository

roles/scale_fileauditlogging/upgrade/tasks/install_repository.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,32 @@
77
- name: upgrade | Initialize
88
set_fact:
99
scale_fal_url: ""
10+
scale_kafaka_url: ""
1011
package_installed: false
1112

1213
- name: upgrade | file audit logging path
1314
set_fact:
14-
scale_fal_url: 'gpfs_rpms/rhel/'
15+
scale_kafaka_url: 'gpfs_rpms/rhel/'
1516
when: ansible_distribution in scale_rhel_distribution
1617

18+
- name: install | file audit logging path
19+
set_fact:
20+
scale_fal_url: 'gpfs_rpms/rhel7/'
21+
when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '7'
22+
23+
- name: install | file audit logging path
24+
set_fact:
25+
scale_fal_url: 'gpfs_rpms/rhel8/'
26+
when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '8'
27+
1728
- name: upgrade | file audit logging path
1829
set_fact:
1930
scale_fal_url: 'gpfs_debs/ubuntu/'
2031
when: ansible_distribution in scale_ubuntu_distribution
2132

2233
- name: upgrade | file audit logging path
2334
set_fact:
24-
scale_fal_url: 'gpfs_rpms/rhel/'
35+
scale_fal_url: 'gpfs_rpms/sles15/'
2536
when: ansible_distribution in scale_sles_distribution
2637

2738
- name: upgrade | Check if gpfs kafka installed
@@ -76,6 +87,21 @@
7687
- ansible_pkg_mgr == 'zypper'
7788
- scale_install_repository_url != 'existing'
7889

90+
- name: upgrade | Configure fal YUM repository
91+
yum_repository:
92+
name: spectrum-scale-kafkafal
93+
description: IBM Spectrum Scale (KAFKAFAL)
94+
baseurl: "{{ scale_install_repository_url }}{{ scale_kafaka_url }}"
95+
gpgcheck: "{{ scale_install_gpgcheck }}"
96+
repo_gpgcheck: no
97+
sslverify: no
98+
state: present
99+
notify: yum-clean-metadata
100+
when:
101+
- ansible_pkg_mgr == 'yum' or ansible_pkg_mgr == 'dnf'
102+
- scale_install_repository_url != 'existing'
103+
- gpfskafka_installed.rc == 0
104+
79105
- name: upgrade | Configure fal YUM repository
80106
yum_repository:
81107
name: spectrum-scale-fal

roles/scale_fileauditlogging/upgrade/tasks/yum/install.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
#
33
# Install or update RPMs
44
#
5-
- name: Initialize
6-
set_fact:
7-
disable_gpgcheck: "no"
8-
9-
- name: Disable gpg check
10-
set_fact:
11-
disable_gpgcheck: "yes"
12-
when: scale_version < '5.0.4.0'
5+
- name: upgrade | Upgrade GPFS file audit logging packages
6+
yum:
7+
name: "{{ scale_install_all_packages }}"
8+
state: latest
9+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"
10+
when: ansible_pkg_mgr == 'yum'
1311

1412
- name: upgrade | Upgrade GPFS file audit logging packages
15-
package:
13+
dnf:
1614
name: "{{ scale_install_all_packages }}"
1715
state: latest
18-
disable_gpg_check: "{{ disable_gpgcheck }}"
16+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"
17+
when: ansible_pkg_mgr == 'dnf'

0 commit comments

Comments
 (0)