Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
making sure sat_tools_repos to evaluate correct repos
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Jun 3, 2019
1 parent 3c542be commit 13a74b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jobs/satellite6-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@
default: true
description: |
This option allows to use foreman-maintain for satellite-upgrade.
- satellite6-automation-parameters
scm:
- git:
url: https://github.com/SatelliteQE/satellite6-upgrade.git
Expand Down Expand Up @@ -904,7 +905,8 @@
- project: 'automation-preupgrade-{satellite_version}-scenario-tests-{os}'
current-parameters: true
predefined-parameters: |
SERVER_HOSTNAME=${{SERVER_HOSTNAME}}
SERVER_HOSTNAME=${{SERVER_HOSTNAME}
SATELLITE_DISTRIBUTION=${{SATELLITE_DISTRIBUTION}}
RHEL6_TOOLS_REPO=${{RHEL6_TOOLS_REPO}}
RHEL7_TOOLS_REPO=${{RHEL7_TOOLS_REPO}}
CAPSULE_REPO=${{CAPSULE_REPO}}
Expand Down
11 changes: 11 additions & 0 deletions scripts/satellite6-upgrade-run-scenarios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ function setupPrerequisites () {
sed -i "s/# gateway=.*/gateway=${GATEWAY}/" robottelo.properties
sed -i "s/# netmask=.*/netmask=${NETMASK}/" robottelo.properties

# cdn = 1 for Distributions: GA (default in robottelo.properties)
# cdn = 0 for Distributions: INTERNAL, BETA, ISO
# Sync content and use the below repos only when DISTRIBUTION is not GA
if [[ "${SATELLITE_DISTRIBUTION}" != *"GA"* ]]; then
# The below cdn flag is required by automation to flip between RH & custom syncs.
sed -i "s/^cdn=.*/cdn=false/" robottelo.properties
# Usage of '|' is intentional as TOOLS_REPO can bring in http url which has '/'
sed -i "s|sattools_repo=.*|sattools_repo=rhel8=${RHEL8_TOOLS_REPO},rhel7=${RHEL7_TOOLS_REPO},rhel6=${RHEL6_TOOLS_REPO}|" robottelo.properties
sed -i "s|capsule_repo=.*|capsule_repo=${CAPSULE_REPO}|" robottelo.properties
fi

# Robottelo logging configuration
sed -i "s/'\(robottelo\).log'/'\1-${ENDPOINT}.log'/" logging.conf
# Bugzilla Login Details
Expand Down

0 comments on commit 13a74b6

Please sign in to comment.