a24b75673797606715e593538ddd112fec760c95
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / manifests / package_source / apt_postgresql_org.pp
1 class postgresql::package_source::apt_postgresql_org {
2   # Here we have tried to replicate the instructions on the PostgreSQL site:
3   #
4   # http://www.postgresql.org/download/linux/debian/
5   #
6   apt::pin { 'apt.postgresql.org':
7     originator => 'apt.postgresql.org',
8     priority   => 500,
9   }->
10   apt::source { 'apt.postgresql.org':
11     location          => 'http://apt.postgresql.org/pub/repos/apt/',
12     release           => "${::lsbdistcodename}-pgdg",
13     repos             => 'main',
14     required_packages => 'pgdg-keyring',
15     key               => 'ACCC4CF8',
16     key_source        => 'http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc',
17     include_src       => false,
18   }
19
20   Apt::Source['apt.postgresql.org']->Package<|tag == 'postgresql'|>
21 }