Hello Community, I am currently extending the the...
# voxpupuli
s
Hello Community, I am currently extending the the puppetlabs-postgresql module to add the option to create postgresql instances. I am currenty getting the following error from the
postgresql_conf
type and provider:
Copy code
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:
Copy code
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 #puppet