|
2 | 2 |
|
3 | 3 | Install and configure a Lustre client. This builds RPM packages from source.
|
4 | 4 |
|
5 |
| -**NB:** The `install.yml` playbook in this role should only be run during image build, with the default `update_enable=true`. This ensures that the latest kernel and matching |
6 |
| -`kernel-devel` packages will be installed. This playbook is not idempotent. |
| 5 | +**NB:** The `install.yml` playbook in this role should only be run during image build and is not idempotent. This will install the `kernel-devel` package; if not already installed (e.g. from an `ofed` installation), this may require enabling update of DNF packages during build using `update_enable=true`, which will upgrade the kernel as well. |
7 | 6 |
|
8 | 7 | **NB:** Currently this only supports RockyLinux 9.
|
9 | 8 |
|
10 | 9 | ## Role Variables
|
11 | 10 |
|
12 |
| -- `lustre_version`: Optional str. Version of lustre to build, default '2.15.5' which is the first version with EL9 support |
13 |
| -- `lustre_mounts`: Required list. Define Lustre filesystems and mountpoints as a list of dicts with possible keys: |
14 |
| - - `mgs_nid`: The NID for the MGS, e.g. `192.168.227.11@tcp1` |
15 |
| - - `fs_name`: The name of the filesystem to mount |
16 |
| - - `mount_point`: Path to mount filesystem at. Default is `/mnt/lustre/{{ lustre_fs_name}}` |
17 |
| - - `mount_state`: Mountpoint state, as for [ansible.posix.mount](https://docs.ansible.com/ansible/latest/collections/ansible/posix/mount_module.html#parameter-state). Default `mounted`. |
18 |
| - TODO: FIXME: Any of these parameters may alternatively be specified as role variables prefixed `lustre_`. If both are given entries in `lustre_mounts` take priority. |
| 11 | +- `lustre_version`: Optional str. Version of lustre to build, default `2.15.5` which is the first version with EL9 support |
| 12 | +- `lustre_lnet_label`: Optional str. The "lnet label" part of the host's NID, e.g. `tcp0` or `o2ib1`. Default `tcp`. |
| 13 | +- `lustre_mgs_nid`: Required str. The NID(s) for the MGS, e.g. `192.168.227.11@tcp1` (separate mutiple MGS NIDs using `:`). |
| 14 | +- `lustre_mounts`: Required list. Define Lustre filesystems and mountpoints as a list of dicts with keys: |
| 15 | + - `fs_name`: Required str. The name of the filesystem to mount |
| 16 | + - `mount_point`: Required str. Path to mount filesystem at. |
| 17 | + - `mount_state`: Optional mount state, as for [ansible.posix.mount](https://docs.ansible.com/ansible/latest/collections/ansible/posix/mount_module.html#parameter-state). Default is `lustre_mount_state`. |
| 18 | + - `mount_options`: Optional mount options. Default is `lustre_mount_options`. |
| 19 | +- `lustre_mount_state`. Optional default mount state for all mounts, as for [ansible.posix.mount](https://docs.ansible.com/ansible/latest/collections/ansible/posix/mount_module.html#parameter-state). Default is `mounted`. |
| 20 | +- `lustre_mount_options`. Optional default mount options. Default values are systemd defaults from [Lustre client docs](http://wiki.lustre.org/Mounting_a_Lustre_File_System_on_Client_Nodes). |
| 21 | + |
19 | 22 | The following variables control the package build and and install and should not generally be required:
|
20 | 23 | - `lustre_build_packages`: Optional list. Prerequisite packages required to build Lustre. See `defaults/main.yml`.
|
21 | 24 | - `lustre_build_dir`: Optional str. Path to build lustre at, default `/tmp/lustre-release`.
|
22 |
| -- `lustre_configure_opts`: Optional list. Options to `./configure` command. Default builds client rpms supporting Mellnox OFED, without support for GSS keys. See `defaults/main.yml`. |
| 25 | +- `lustre_configure_opts`: Optional list. Options to `./configure` command. Default builds client rpms supporting Mellanox OFED, without support for GSS keys. |
23 | 26 | - `lustre_rpm_globs`: Optional list. Shell glob patterns for rpms to install. Note order is important as the built RPMs are not in a yum repo. Default is just the `kmod-lustre-client` and `lustre-client` packages.
|
24 |
| -- `lustre_cleanup_build`: Optional bool. Whether to uninstall prerequisite packages and delete the build directories etc. Default `true`. |
| 27 | +- `lustre_build_cleanup`: Optional bool. Whether to uninstall prerequisite packages and delete the build directories etc. Default `true`. |
0 commit comments