small medium large xlarge

07 Nov 2012, 19:13
Twice Tshwenyane (2 posts)

Hi, Is there a way to specify a version the Postgres version to install in the puppet module. The current definition seem to install version 8.4 by default and I would prefer to install version 9.*.

Thank you.

08 Nov 2012, 16:34
Joe Kutner (81 posts)

The puppet config in the book installs PostgreSQL from the OS’s package manager. So if there is a pg version 9 package, then it should just be a matter of changing this on page 31:

package { 'postgresql': ensure => present, }

I believe you can either put a version in the “ensure” line, or add the version to the name of the package.

If you’re going outside of the steps followed in the book you should also take a look at some of the pre-built puppet postgres modules:

09 Nov 2012, 11:04
Twice Tshwenyane (2 posts)

Ok. I tried putting version number on the name of the package and it didn’t work. So for now I’ll leave it as it is. Thanks.

11 Apr 2013, 20:01
Glenn Goodrich (10 posts)

I figured this out (meaning, it works for me.) You can check out my puppet modules at

Hope this helps someone, b/c it took me forever to figure out. (Yes, it’s quite possible that I am dum)

Thanks, Glenn

You must be logged in to comment