Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CPR-570) Import the gpg signing key on sles 11 #45

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/beaker-puppet/install_utils/foss_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,15 @@ def install_puppetlabs_release_repo_on( hosts, repo = nil, opts = options )
[opts[:release_yum_repo_url], repo_name, variant_url_value, version]
end

# sles 11 doesn't handle gpg keys well. We can't automatically
# import the keys because of sad things, so we have to manually
# import it once we install the release package. We'll have to
# remember to update this block when we update the signing keys
if variant == 'sles' && version == '11'
on host, "wget -O /tmp/puppet-gpg-key http://yum.puppetlabs.com/RPM-GPG-KEY-puppet"
on host, "rpm --import /tmp/puppet-gpg-key"
end

if variant == 'cisco_nexus'
# cisco nexus requires using yum to install the repo
host.install_package( remote )
Expand Down