system-config/roles/openafs-client
Ian Wienand 7f2e6f3325
roles/openafs-client: small overhaul of rpm builds
The main failure case for the openafs packages is when the images are
running an old kernel and upstream has moved on, and we only have
headers available for new kernels.  This usually indicates image
building is stuck.  This adds an inline check to make sure the running
kernel has headers available; if not it bails out with a clear
message.

When this does fail to build, we'd like to get some output of why the
service fails.  This adds an error handler to systemctl dump the
status on failure.

We can cleanup the build a bit to remove the centos7 builds now.

Finally, the log copying was broken -- the paths are different on
centos 8 and 9.  The extant "cp" would fail on centos8 and then the
chown would never run, so we wouldn't collect the build logs.  Make
this a find/cp pair too.

Change-Id: Iaa38357a8a683a474c38900f5dc322e088849416
2024-01-18 19:32:30 +11:00
..
defaults openafs-client: add service timeout override 2021-06-16 11:50:53 +10:00
files Increase udp buffer sizes when installing afs client 2019-12-06 13:28:11 -08:00
tasks roles/openafs-client: small overhaul of rpm builds 2024-01-18 19:32:30 +11:00
templates openafs-client: add service timeout override 2021-06-16 11:50:53 +10:00
vars Test openafs roles on CentOS 9-stream 2022-05-03 09:09:44 +10:00
README.rst openafs-client: get logs better 2023-04-27 16:12:00 +10:00

An ansible role to configure an OpenAFS client

Note

This role uses system packages where available, but for platforms or architectures where they are not available will utilise external packages. Defaults will pick packages built from the OpenDev infra project, but you should evaluate if this is suitable for your environment.

This role configures the host to be an OpenAFS client. Because OpenAFS is very reliant on distribution internals, kernel versions and host architecture this role has limited platform support. Currently supported are

  • Debian family with system packages available
  • Ubuntu LTS family with external 1.8 series packages
  • CentOS 7, 8-stream and 9-stream with external packages

Role Variables