puppetlabs-puppetdb icon indicating copy to clipboard operation
puppetlabs-puppetdb copied to clipboard

puppetdb postgresql-server version parameter

Open aboe76 opened this issue 12 years ago • 2 comments

I would like to be able to set the postgresql version that would be used by puppetdb At the moment puppetdb module just calls postgresql::server and installs the default postgresql server for the os.

I would like to be able to say postgresqlversion = 9.1 and puppetdb would call:

class { 'postgresql':
  $version = $postgresqlversion_from_puppetdb
}->
class { 'postgresql::server': }

aboe76 avatar Aug 01 '13 19:08 aboe76

Hello,

The following works for us, give it a try:

    class { '::postgresql::params':
        version => $postgres_version,
    }->
    class { '::puppetdb::database::postgresql':
        listen_addresses => "localhost, $::fqdn",
    }

ak0ska avatar Oct 01 '13 08:10 ak0ska

That doesn't really work for anyone who's using an ENC though...

jantman avatar Feb 20 '14 20:02 jantman

Ability to set the postgres_version as a parameter on the base class was added in #162

h0tw1r3 avatar May 01 '24 03:05 h0tw1r3