Skip to content

Instantly share code, notes, and snippets.

@aharden
Created January 10, 2017 20:36
Show Gist options
  • Save aharden/8b043aa48dc1b55e73cd3a37c393e7db to your computer and use it in GitHub Desktop.
Save aharden/8b043aa48dc1b55e73cd3a37c393e7db to your computer and use it in GitHub Desktop.
Patch Puppet Enterprise 2016.2 to allow Debian-based pe_repo-managed agent repositories to ignore expired GPG key
# remove after PE 2016.4 or later is deployed
if $pe_build == '2016.2.1' {
file_line { 'Allow PE 2016.2.1 Debian pe_repos to ignore old GPG key':
ensure => 'present',
path => '/opt/puppetlabs/puppet/modules/pe_repo/templates/deb.bash.erb',
replace => true,
match => " DEBIAN_FRONTEND=noninteractive apt-get install -y -o Apt::Get::Purge=false -o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef' --no-install-recommends puppet-agent",
line => " DEBIAN_FRONTEND=noninteractive apt-get install -y -o Apt::Get::Purge=false -o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef' --no-install-recommends --allow-unauthenticated puppet-agent",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment