Skip to content

Commit

Permalink
avoiding the ohsnap repo url incase of nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Oct 16, 2024
1 parent 989f303 commit 674a3b1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/foreman/installer/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,12 +1350,18 @@ def common_sat_install_assertions(satellite):
def install_satellite(satellite, installer_args):
# Register for RHEL8 repos, get Ohsnap repofile, and enable and download satellite
satellite.register_to_cdn()
satellite.download_repofile(
product='satellite',
release=settings.server.version.release,
snap=settings.server.version.snap,
)
satellite.execute('dnf -y module enable satellite:el8 && dnf -y install satellite')
if settings.server.version.source == 'nightly':
satellite.create_custom_repos(
satellite_repo=settings.repos.satellite_repo,
satmaintenance_repo=settings.repos.satmaintenance_repo,
)
satellite.execute('dnf -y module enable satellite:el8 && dnf -y install satellite')
else:
satellite.download_repofile(
product='satellite',
release=settings.server.version.release,
snap=settings.server.version.snap,
)
# Configure Satellite firewall to open communication
satellite.execute(
'firewall-cmd --permanent --add-service RH-Satellite-6 && firewall-cmd --reload'
Expand Down

0 comments on commit 674a3b1

Please sign in to comment.