1 class postgresql::package_source::apt_postgresql_org {
2 # Here we have tried to replicate the instructions on the PostgreSQL site:
4 # http://www.postgresql.org/download/linux/debian/
6 apt::pin { 'apt.postgresql.org':
7 originator => 'apt.postgresql.org',
10 apt::source { 'apt.postgresql.org':
11 location => 'http://apt.postgresql.org/pub/repos/apt/',
12 release => "${::lsbdistcodename}-pgdg",
14 required_packages => 'pgdg-keyring',
16 key_source => 'http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc',
20 Apt::Source['apt.postgresql.org']->Package<|tag == 'postgresql'|>