2013-08-27 22:43:47 +02:00
|
|
|
# PRIVATE CLASS: do not use directly
|
|
|
|
class postgresql::repo::apt_postgresql_org inherits postgresql::repo {
|
2014-04-08 16:40:49 +02:00
|
|
|
include ::apt
|
2014-07-02 16:45:07 +02:00
|
|
|
# Here we have tried to replicate the instructions on the PostgreSQL site:
|
|
|
|
#
|
|
|
|
# http://www.postgresql.org/download/linux/debian/
|
|
|
|
#
|
2015-09-04 23:35:59 +02:00
|
|
|
apt::pin { 'apt_postgresql_org':
|
2014-07-02 16:45:07 +02:00
|
|
|
originator => 'apt.postgresql.org',
|
|
|
|
priority => 500,
|
|
|
|
}->
|
|
|
|
apt::source { 'apt.postgresql.org':
|
2015-01-11 05:27:57 +01:00
|
|
|
location => 'http://apt.postgresql.org/pub/repos/apt/',
|
|
|
|
release => "${::lsbdistcodename}-pgdg",
|
|
|
|
repos => "main ${postgresql::repo::version}",
|
2015-03-20 15:26:26 +01:00
|
|
|
key => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8',
|
2015-01-11 05:27:57 +01:00
|
|
|
key_source => 'https://www.postgresql.org/media/keys/ACCC4CF8.asc',
|
|
|
|
include_src => false,
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|
2014-07-02 16:45:07 +02:00
|
|
|
|
|
|
|
Apt::Source['apt.postgresql.org']->Package<|tag == 'postgresql'|>
|
2016-01-30 00:20:20 +01:00
|
|
|
Class['Apt::Update'] -> Package<|tag == 'postgresql'|>
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|