Commit 574d55b
committed
fix(roles/icinga2_master): pre-install nagios-selinux on RHEL 10 for icinga2-selinux %post
The `icinga2-selinux` policy module references `nagios_*_plugin_t` types
that were moved out of the EL10 base policy into the separate
`nagios-selinux` package (EPEL). Without it, `icinga2-selinux`'s `%post`
fails silently in `semodule -i`, the `icinga2` module never loads, and
later `setsebool -P icinga2_can_connect_all on` errors out with
`SELinux boolean ... is not defined in persistent policy`.
Install `nagios-selinux` from a separate, pre-installation task on
RHEL 10 so its `%post` registers the required types before the main
package list (which contains `icinga2-selinux`) is processed. A single
`dnf install` transaction covering both packages is not enough because
the `%post` order between siblings without an explicit `Requires` is
not deterministic.1 parent 70483bc commit 574d55b
3 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments