VoxBot
07/05/2023, 11:32 AMVoxBot
07/05/2023, 11:33 AMVoxBot
07/05/2023, 11:33 AMVoxBot
07/05/2023, 11:33 AMVoxBot
07/05/2023, 11:33 AMcruelsmith
07/05/2023, 11:42 AMVoxBot
07/05/2023, 11:45 AMVoxBot
07/05/2023, 11:46 AMVoxBot
07/05/2023, 11:50 AMVoxBot
07/05/2023, 11:50 AMVoxBot
07/05/2023, 11:50 AMcruelsmith
07/05/2023, 12:48 PMVoxBot
07/05/2023, 12:49 PMcruelsmith
07/05/2023, 12:52 PMsimonhoenscheid
07/05/2023, 1:00 PMpostgresql_conf
type and provider:
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement,
Cannot alias Postgresql_conf[port_for_instance_test1] to ["port"] at
(file: /root/puppet/modules/postgresql/manifests/server/config_entry.pp, line: 85);
resource ["Postgresql_conf", "port"] already declared
(file: /root/puppet/modules/postgresql/manifests/server/config_entry.pp, line: 85)
(file: /root/puppet/modules/postgresql/manifests/server/config_entry.pp, line: 85, column: 3)
(file: /root/puppet/modules/postgresql/manifests/server/instance/config.pp, line: 196) on node foo
I had a look at the underlaying Puppet::Provider::ParsedFile
provider and it seems very complex.
I would like to add a 'key' property to the postgresql_conf type:
newproperty(:key) do
desc 'The Postgresql parameter to manage.'
newvalues(%r{^[\w.]+$})
end
So far the easier part.
Is it possible to add the key property also to the provider or does the underlaying ParsedFile
limit this?
And what needs to happen make the resource unique?
I have limited experience with type and provider development and would ask for help here
Posted in #puppetDr Bunsen Honeydew
07/05/2023, 1:00 PMpuppetlabs-postgresql
module at https://forge.puppet.com/puppetlabs/postgresql?src=slack&channel=voxpupuliVoxBot
07/05/2023, 1:28 PMcruelsmith
07/05/2023, 1:36 PM/\.has_key\(/
or /\shas_key\(/
and can be replaced with $key in $array_or_hash
VoxBot
07/05/2023, 1:36 PMYury Bushmelev
07/05/2023, 1:38 PMYury Bushmelev
07/05/2023, 1:39 PMVoxBot
07/05/2023, 1:42 PMVoxBot
07/05/2023, 2:07 PMVoxBot
07/05/2023, 2:07 PMVoxBot
07/05/2023, 2:08 PMVoxBot
07/05/2023, 6:59 PMVoxBot
07/05/2023, 6:59 PMVoxBot
07/05/2023, 8:41 PMVoxBot
07/05/2023, 8:45 PMVoxBot
07/05/2023, 8:48 PM