From 6606f68db3c86ebfaa480ede311ef54643a19ae7 Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Wed, 9 Sep 2020 13:43:13 +0200 Subject: [PATCH] Add pinning config for stretch --- modules/rhizo_base/files/stretch-pinning.pref | 19 +++++++++++++++++++ modules/rhizo_base/manifests/apt.pp | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 modules/rhizo_base/files/stretch-pinning.pref diff --git a/modules/rhizo_base/files/stretch-pinning.pref b/modules/rhizo_base/files/stretch-pinning.pref new file mode 100644 index 0000000..5328ec3 --- /dev/null +++ b/modules/rhizo_base/files/stretch-pinning.pref @@ -0,0 +1,19 @@ +Package: freeswitch* +Pin: version 1.10.3* +Pin-Priority: 510 + +Package: postgresql-*-9.6 +Pin: version 9.6.18* +Pin-Priority: 510 + +Package: postgresql-*-common +Pin: version 215* +Pin-Priority: 510 + +Package: swig +Pin: version 3* +Pin-Priority: 510 + +Package: libsofia-sip* +Pin: release a=oldstable +Pin-Priority: 510 diff --git a/modules/rhizo_base/manifests/apt.pp b/modules/rhizo_base/manifests/apt.pp index d18978a..9ab7ac6 100644 --- a/modules/rhizo_base/manifests/apt.pp +++ b/modules/rhizo_base/manifests/apt.pp @@ -30,6 +30,11 @@ class rhizo_base::apt::common { content => 'APT::Get::AllowUnauthenticated "true";', } + file { '/etc/apt/preferences.d/pinning.pref': + ensure => present, + source => "puppet:///modules/rhizo_base/$lsbdistcodename-pinning.pref", + } + apt::source { 'rhizomatica': location => 'http://dev.rhizomatica.org/ubuntu/', release => 'precise',