Bug #26983
openAlmalinux 9.x in a technique condition fails
Description
Hi,
I'm trying to create on Rudder 8.3.1 a technique with a condition for applying only on AlmaLinux 9.x.
I choose "AlmaLinux" in "Operating system", but when I specify "9" in "Major version", the OS automatically switch to CentOS ("applied configuration expression: centos_9"). And... the rule fails: "Skipping method 'File content' with key parameter '/folder/file' since condition 'centos_9' is not reached was not applicable".
If i choose "AlmaLinux" but without major or minor version, the OS don't switch, applied configuration expression stays with "almalinux" and the rule works (Insert content into /folder/file was repaired). But I can't restrict to AlmaLinux 9, for example.
I don't reproduce this one for other Linux OS : I can specify Debian 11.x or 12.11, Ubuntu 22.10 or 24.04... but with AlmaLinux, if I want to restrict to a specific version, it's saved like CentOS and the rule don't work.
Thanks.
Updated by Vincent MEMBRÉ 17 days ago
- Category set to Web - Technique editor
- Target version set to 8.2.7
Thank you Nicolas for reporting this issue ! A long time ago condition with version on almalinux were not available on the agent side. They are now available and we should definitely use them!
You can use in "advanced condition" almalinux_x or almalinux_x_y until we fix this issue!
Updated by Vincent MEMBRÉ 17 days ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ 17 days ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Raphael GAUTHIER
- Pull Request set to https://github.com/Normation/rudder/pull/6422
Updated by Vincent MEMBRÉ 17 days ago
- Target version changed from 8.2.7 to 8.2.8
Updated by Anonymous 16 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|7d6ecf84894f172a5ceec2f7e55be88fadb4fc2f.