module-postgresql/manifests/repo/apt_postgresql_org.pp
Tom Ford 313235a1f9 Update apt key to full 40characters
Latest version of puppetlabs/apt module shows warning on every puppet run if using a short key so this update includes the full 40 character key.
2015-03-20 14:26:26 +00:00

22 lines
806 B
Puppet

# PRIVATE CLASS: do not use directly
class postgresql::repo::apt_postgresql_org inherits postgresql::repo {
include ::apt
# Here we have tried to replicate the instructions on the PostgreSQL site:
#
# http://www.postgresql.org/download/linux/debian/
#
apt::pin { 'apt.postgresql.org':
originator => 'apt.postgresql.org',
priority => 500,
}->
apt::source { 'apt.postgresql.org':
location => 'http://apt.postgresql.org/pub/repos/apt/',
release => "${::lsbdistcodename}-pgdg",
repos => "main ${postgresql::repo::version}",
key => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8',
key_source => 'https://www.postgresql.org/media/keys/ACCC4CF8.asc',
include_src => false,
}
Apt::Source['apt.postgresql.org']->Package<|tag == 'postgresql'|>
}