Choose version of postgresql

Hello!

I have looked and haven't found a way but I ask anyway. :slight_smile:

Is there a way to choose which version of PostgreSQL to use?

On my ubuntu 16.04 I have access to version 9.5 but I need 9.6. (puppetdb 5
needs it)

If I hack the globals.pp file and install the postgresql-repo I can use it
but that sure isn't user friendly. :slight_smile:

It would be nice if there was a switch I could use instead for those few
times the automatics choose the wrong version.

mmoll@sledge:~$ cat /etc/foreman-installer/custom-hiera.yaml |grep -v
^#

ยทยทยท On Tue, Oct 31, 2017 at 03:55:19PM +0100, Roger Martensson wrote: > On my ubuntu 16.04 I have access to version 9.5 but I need 9.6. (puppetdb 5 > needs it) > > If I hack the globals.pp file and install the postgresql-repo I can use it > but that sure isn't user friendly. :)

postgresql::globals::manage_package_repo: true
postgresql::globals::version: '9.6โ€™
postgresql::repo::baseurl: โ€˜http://apt.postgresql.org/pub/repos/apt/โ€™

โ€“
Michael Moll

Thanks for the information. I completely missed this little hidden gem.

ยทยทยท Den 2017-10-31 kl. 15:58, skrev Michael Moll: > On Tue, Oct 31, 2017 at 03:55:19PM +0100, Roger Martensson wrote: >> On my ubuntu 16.04 I have access to version 9.5 but I need 9.6. (puppetdb 5 >> needs it) >> >> If I hack the globals.pp file and install the postgresql-repo I can use it >> but that sure isn't user friendly. :) > mmoll@sledge:~$ cat /etc/foreman-installer/custom-hiera.yaml |grep -v > ^\# > --- > postgresql::globals::manage_package_repo: true > postgresql::globals::version: '9.6' > postgresql::repo::baseurl: 'http://apt.postgresql.org/pub/repos/apt/'