Skip to content

Add initial SEAPATH SLES standalone support#945

Open
emontmas wants to merge 12 commits into
seapath:mainfrom
emontmas:sle-dev
Open

Add initial SEAPATH SLES standalone support#945
emontmas wants to merge 12 commits into
seapath:mainfrom
emontmas:sle-dev

Conversation

@emontmas

Copy link
Copy Markdown
Contributor

This PR bring the initial support for the SEAPATH SLES flavor:

  • Add the SLES seapath distro type to the detect_seapath_distro role.
  • In the configuration roles, when required and possible, move some configurations from a monolithic file to a configuration fragment. This is necessary to assure compatibility of some configuration tasks between multiple distros beyond Debian.
  • Add the SEAPATH SLES prerequisite playbook.
  • In roles already containing per-distro var files, add one for SEAPATH SLES.
  • Various improvements to existing configuration roles to better.

With this PR, the playbook/seapath_setup_main.yaml and associated roles now supports configuring a SEAPATH SLES standalone hypervisor.

Note that following PRs will bring compatibility for SEAPATH SLES cluster machine configuration, hardening confgiruation and cukinia tests.

emontmas added 12 commits June 12, 2026 13:16
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
The file may not be created by all base distro, therefore create it
before modifying it.

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Commit [1] added an initial modification to GRUB_CMDLINE_LINUX to add
a space at the beginning. Otherwise, the following task could add
a parameter that is already present in GRUB_CMDLINE_LINUX at the very
beginning.

  Example: GRUB_CMDLINE_LINUX="foo=bar" would match
           ^(GRUB_CMDLINE_LINUX=(?!.* foo=bar)\"[^\"]*)(\".*)
           because the space before "foo" doesn't exist in the file.

However, this can be simply solved by fixing the negative lookahead to
take into account this possibility.

Fix the regex and remove the task adding the initial space.

Note that this task was preventing the role from being idempotent
because the "Make grub conf" task would create a second initial space.

[1]: seapath@c93bf0f

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Some distributions choose to provide /usr/lib/systemd/system.conf
instead of /etc/systemd/system.conf.
In that case, /etc/systemd/system.conf shouldn't be created, because
systemd ignores /etc/systemd/system.conf
if it founds /usr/lib/systemd/system.conf [1].

Instead, set the hardware watchdog related configurations in a drop-in
file, which will be compatible regardless of the distribution's choice
for the system-wide configuration file.

[1]: https://www.freedesktop.org/software/systemd/man/latest/systemd-system.conf.html#Configuration%20Directories%20and%20Precedence

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Add seapath_setup_prerequissles.yaml playbook with distro configuration
for SEAPATH SLES machines.

This playbook follows an approach similar to what is done with
SEAPATH Debian configuration.

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Some distributions choose to provide /usr/lib/systemd/resolved.conf
instead of /etc/systemd/resolved.conf.
In that case, /etc/systemd/resolved.conf will be ignored by systemd
because /usr/lib/systemd/resolved.conf has a higher priority [1].

Instead, configure the SEAPATH specific resolved configurations as a
drop-in file. This will be compatible regardless of the distribution's
choice for the system-wide configuration file.

[1]: https://www.freedesktop.org/software/systemd/man/latest/resolved.conf.html#Configuration%20Directories%20and%20Precedence

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
@emontmas emontmas added the enhancement New feature or request label Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant