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 modify to optimise the performance, such as 
> 'shared_buffers' and 'work_mem'. Normally the methods to do this would be a 
> straight parameter lookup in Hiera, however these values are nested within 
> a Hash. No problem I hear you say, just use 'create_resources'.. well 
> that's what I'd normally do next, however trying to declare it in a 
> 'profile' class it complains of a 'duplicate class declaration'...
>
> Steps to reproduce -
> 1. puppet module install puppetlabs-puppetdb
> 2. class profile::puppetdb {
>  include profile::fw::puppetdb
>  include ::puppetdb
>  class { 'postgresql::server':
>   config_hash => {
>    'shared_buffers' => '512MB',
>    'work_mem' => '16MB',
>    }
>   }
>  }
>
> Duplicate declaration, can't do..
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/39bc0567-2deb-42b7-aa46-d2f0b128a2ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to