Skip to content

Commit

Permalink
Merge pull request #45 from stackhpc/ib-modules
Browse files Browse the repository at this point in the history
Update libbeegfs-ib package and rebuild kernel module on beegfs_update=yes  (v19.8.1)
  • Loading branch information
brtkwr authored Aug 15, 2019
2 parents 93304ca + 674f7df commit 1b89e13
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,7 @@ beegfs_client: []
# BeeGFS? This is useful for upgrading.
beegfs_update: false
beegfs_package_action: "{{ 'latest' if beegfs_update | bool else 'present' }}"

# Path to the kernel module
beegfs_kernel_module: "/lib/modules/{{ ansible_kernel }}/updates/fs/beegfs_autobuild/beegfs.ko"
...
2 changes: 1 addition & 1 deletion tasks/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
- name: Rebuild the BeeGFS client kernel module
command: /etc/init.d/beegfs-client rebuild
args:
creates: "/lib/modules/{{ ansible_kernel }}/updates/fs/beegfs_autobuild/beegfs.ko"
creates: "{{ beegfs_kernel_module }}"
become: true
notify: Restart BeeGFS client service

Expand Down
8 changes: 8 additions & 0 deletions tasks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@
with_items:
- { name: "{{ beegfs_meta_path }}", enable: "{{ beegfs_enable.meta }}" }
- { name: "{{ beegfs_mgmt_path }}", enable: "{{ beegfs_enable.mgmt }}" }
- name: Unload kernel module
modprobe:
name: beegfs
state: absent
- name: Delete kernel module
file:
path: "{{ beegfs_kernel_module }}"
state: absent
when: (beegfs_force_format | bool) or
(beegfs_package_action | lower == "latest")
become: true
Expand Down
2 changes: 1 addition & 1 deletion tasks/rdma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Ensure RDMA packages are installed
package:
name: "{{ beegfs_distro_vars[ansible_os_family]['rdma_dev_pkgs'] }}"
state: present
state: "{{ beegfs_package_action }}"
become: true

- name: Ensure RDMA kernel modules are loaded
Expand Down

0 comments on commit 1b89e13

Please sign in to comment.