I am setting up postgresql using the postgresql module.  
I have most things working. 
My issue is the config_entry as I am trying to add ssl to the config.
I have this in hiera:

pgsql_config_entries:
  - name: ssl
    value: on
  - name: ssl_cert_file
    value: '/etc/pki/tls/certs/servername.pem'
  - name: ssl_key_file
    value: '/etc/pki/tls/private/servername.key'

In my manifest I create config entries as follows: 
$config_entries = lookup('pgsql_config_entries')
$config_entries.each | Hash $ce | {
      postgresql::server::config_entry{ $ce['name'] :
            ensure  => 'present',
            value     => $ce['value'],
            path       => '/opt/pgdata/pgsql-15/postgresql.conf',
      }
}

Puppet OSS(6.28.0) throws this error: 
/Stage[main]/Profile::mypostgresql/Postgresql::Server::Config_entry[ssl]/Postgresql_conf[ssl]:
  
Could not evaluate: undefined method 'match' for true:TrueClass

I have everything else working on this setup other than the SSL, but I can 
find no examples of how the Config_entry should work.  
Any help would be very appreciated.
Thanks,
Ryan Carl




-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1ff0ed9d-b346-4b76-b770-86fcf0f5ce20n%40googlegroups.com.

Reply via email to