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