Re: [Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread jcbollinger
On Thursday, October 18, 2018 at 6:57:41 AM UTC-5, Eirik Øverby wrote: > > > class foo:bar( > > $param1, # This enables you to provide 'param1' when > instantiating the class, > > # and it enables auto-parameter-lookup for > foo::bar::param1 in Hiera. > >

Re: [Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread KevinR
Hi Eirik, I can't speak for those antique 2.x/3.x versions ;-) The automatic parameter lookup feature is available from Puppet 4.8 onwards, see the official description of it here . As you can see from the documentation, setting

Re: [Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread Eirik Øverby
> class foo:bar( > $param1, # This enables you to provide 'param1' when instantiating > the class, > # and it enables auto-parameter-lookup for foo::bar::param1 > in Hiera. > # if no value is given or found in Hiera, the value of > $param1 will be

Re: [Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread KevinR
Hi Eirik, the parameter behavior is actually the other way around: class foo:bar( $param1, # This enables you to provide 'param1' when instantiating the class, # and it enables auto-parameter-lookup for foo::bar::param1 in Hiera. # if no value is given

Re: [Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread Eirik Øverby
Hi, > I don't fully understand Part 2: "2. You need any applicable resource-like > declaration of class postgresql::server in the manifest set to not itself > bind a value to the config_hash parameter." You are probably declaring your class/resource setting default values for parameters

[Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-18 Thread comport3
Hi John, Thank you for your response. I tried putting the parameters directly into Hiera as suggested and nothing happened. I don't fully understand Part 2: "2. You need any applicable resource-like declaration of class postgresql::server in the manifest set to not itself bind a value to the

[Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-16 Thread jcbollinger
On Tuesday, October 16, 2018 at 3:54:13 AM UTC-5, comport3 wrote: > > Hi All, > > We are integrating a new PuppetDB role, and note that there are some key > tuning parameters we'd like to modify to optimise the performance, such as > 'shared_buffers' and 'work_mem'. Normally the methods to do

[Puppet Users] Re: Pass parameters to the 'postgresql' module when instantiated as a dependency of the 'puppetdb' module

2018-10-16 Thread Chadwick Banning
You should be able to also set them using https://forge.puppet.com/puppetlabs/postgresql#postgresql_conf. On Tuesday, October 16, 2018 at 4:54:13 AM UTC-4, comport3 wrote: > > Hi All, > > We are integrating a new PuppetDB role, and note that there are some key > tuning parameters we'd like to