Skip to content

Commit

Permalink
Subscribe content from CDN temporarily to install wget package
Browse files Browse the repository at this point in the history
Signed-off-by: Kedar Bidarkar <kbidarka@redhat.com>
  • Loading branch information
kbidarkar committed Jul 17, 2018
1 parent 7db6820 commit c2e5f40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion automation_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1605,14 +1605,19 @@ def setup_capsule(satellite_fqdn=None, capsule_fqdn=None, capsule_org=None,
# Disable Beaker Repos.
disable_beaker_repos(silent=True)

subscribe(autosubscribe=True)
run('yum -y install wget', warn_only=True)
# Clean up
unsubscribe()


# Clean up and install with basic packages.
clean_rhsm()

# Install the cert file
run('yum -y localinstall '
'http://{0}/pub/katello-ca-consumer-latest.noarch.rpm'
.format(satellite_fqdn))
run('yum -y install wget', warn_only=True)
run('wget -O /root/capsule_script.sh http://{0}/pub/capsule_script.sh'
.format(satellite_fqdn))
run('wget -O /root/{1}-certs.tar http://{0}/pub/{1}-certs.tar'
Expand Down

0 comments on commit c2e5f40

Please sign in to comment.