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

(BKR-1462) Allow unsigned apt repositories for Ubuntu 18.04 hosts #46

Merged
merged 1 commit into from
May 3, 2018
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
4 changes: 4 additions & 0 deletions lib/beaker-puppet/install_utils/foss_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,10 @@ def install_puppet_agent_dev_repo_on( hosts, global_opts )
if arch== 's390x' || host['hypervisor'] == 'ec2'
logger.trace("#install_puppet_agent_dev_repo_on: unsupported host #{host} for repo detected. using dev package")
else
if variant =~ /^ubuntu$/ && version.split('.').first.to_i >= 18
# Allow the use of unsigned repos with Ubuntu 18.04+
on host, "echo 'Acquire::AllowInsecureRepositories \"true\";' > /etc/apt/apt.conf.d/90insecure"
end
install_puppetlabs_dev_repo( host, 'puppet-agent', puppet_agent_version, nil, opts )
host.install_package('puppet-agent')
logger.trace("#install_puppet_agent_dev_repo_on: install_puppetlabs_dev_repo finished")
Expand Down