Skip to content

Commit

Permalink
Merge pull request #46 from puppetlabs/ubuntu-insecure-repos2
Browse files Browse the repository at this point in the history
(BKR-1462) Allow unsigned apt repositories for Ubuntu 18.04 hosts
  • Loading branch information
mchllweeks authored May 3, 2018
2 parents 7a0ea66 + 46dc2ba commit 5d20ce7
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 5d20ce7

Please sign in to comment.