Skip to content

Commit

Permalink
Satellite Maintain fapolicyd package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare committed Sep 12, 2024
1 parent e22ae45 commit 732819d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/foreman/installer/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ def install_satellite(satellite, installer_args, enable_fapolicyd=False):
snap=settings.server.version.snap,
)
if enable_fapolicyd:
assert (
satellite.execute('dnf -y install fapolicyd && systemctl enable --now fapolicyd').status
== 0
)
if satellite.execute('rpm -q satellite-maintain').status == 0:
# Installing the rpm on existing sat needs sat-maintain perms
cmmd = 'satellite-maintain packages install fapolicyd -y'
else:
cmmd = 'dnf -y install fapolicyd'
assert satellite.execute(f'{cmmd} && systemctl enable --now fapolicyd').status == 0
satellite.install_satellite_or_capsule_package()
if enable_fapolicyd:
assert satellite.execute('rpm -q foreman-fapolicyd').status == 0
Expand Down

0 comments on commit 732819d

Please sign in to comment.