File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
-
2
- lustre_version : ' b2_15' # TODO: FIXME to 2.15.5 on release see http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/2024-June/019163.html
1
+ lustre_version : ' 2.15.5-RC3' # TODO: FIXME to 2.15.5 on release see http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/2024-June/019163.html
3
2
lustre_mounts : [{}] # Ensures if all top-level vars are provided then this isn't required
4
3
# lustre_mgs_nid:
5
4
# lustre_fs_name:
@@ -32,6 +31,6 @@ lustre_configure_opts:
32
31
- --disable-gss-keyring
33
32
- --enable-mpitests=no
34
33
lustre_rpm_globs : # NB: order is important here, as not installing from a repo
35
- - " kmod-lustre-client-{{ lustre_version }}-* "
36
- - " lustre-client-{{ lustre_version }}- *"
34
+ - " kmod-lustre-client-{{ lustre_version | split('.') | first }}* " # only take part of the version as -RC versions produce _RC rpms
35
+ - " lustre-client-{{ lustre_version | split('.') | first }} *"
37
36
lustre_cleanup_build : true
Original file line number Diff line number Diff line change 11
11
12
12
- name : Prepare for lustre configuration
13
13
ansible.builtin.command :
14
- cmd : ./autogen.sh
14
+ cmd : sh ./autogen.sh
15
15
chdir : " {{ lustre_build_dir }}"
16
16
17
17
- name : Configure lustre build
43
43
44
44
- block :
45
45
- name : Remove lustre build prerequisites
46
- # NB only remove ones this role installed!
46
+ # NB Only remove ones this role installed which weren't upgrades
47
47
ansible.builtin.dnf :
48
- name : " {{ item | regex_replace('Installed: ', '') }}"
48
+ name : " {{ _new_pkgs }}"
49
49
state : absent
50
- loop : " {{ _lustre_dnf_build_packages.results }}"
50
+ vars :
51
+ _installed_pkgs : |
52
+ {{
53
+ _lustre_dnf_build_packages.results |
54
+ select('match', 'Installed:') |
55
+ map('regex_replace', '^Installed: (.+?)-[0-9].*$', '\1')
56
+ }}
57
+ _removed_pkgs : |
58
+ {{
59
+ _lustre_dnf_build_packages.results |
60
+ select('match', 'Removed:') |
61
+ map('regex_replace', '^Removed: (.+?)-[0-9].*$', '\1')
62
+ }}
63
+ _new_pkgs : " {{ _installed_pkgs | difference(_removed_pkgs) }}"
51
64
52
65
- name : Delete lustre build dir
53
66
file :
You can’t perform that action at this time.
0 commit comments