Skip to content

Commit

Permalink
Simplify puppet apt key importing
Browse files Browse the repository at this point in the history
  • Loading branch information
jvperrin committed Jan 5, 2017
1 parent dec7396 commit 55b8d2a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions modules/ocf/manifests/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,10 @@
source => 'https://apt.ocf.berkeley.edu/pubkey.gpg';
}

# Add the puppetlabs key even though we use our local mirror
apt::key { 'puppetlabs':
# Add the puppetlabs apt repo key
apt::key { 'puppet gpg key':
id => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
source => 'https://mirrors.ocf.berkeley.edu/puppetlabs/apt/pubkey.gpg';
}

# Hack to update the puppetlabs APT signing key with the same signature
# See https://tickets.puppetlabs.com/browse/MODULES-3307 for more info
exec { 'apt-key puppetlabs':
path => '/bin:/usr/bin',
unless => 'apt-key list | grep 4BD6EC30 | grep -vE "expired|revoked"',
command => 'apt-key adv --keyserver keys.gnupg.net --recv-keys 1054b7a24bd6ec30';
server => 'pgp.mit.edu',
}

file { '/etc/cron.daily/ocf-apt':
Expand Down

0 comments on commit 55b8d2a

Please sign in to comment.