Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When there is a dash - in the instance name, the Postgresql_conf defined resource fails #1623

Open
ianc769 opened this issue Dec 5, 2024 · 0 comments

Comments

@ianc769
Copy link

ianc769 commented Dec 5, 2024

Describe the Bug

When there is a dash - in the instance name, the Postgresql_conf defined resource fails

profile::postgres::instances:
  "%{facts.networking.hostname}":
    instance_user: "postgres"
    instance_group: "postgres"

We want to build the instance based off the hostname, as in our environment its 1 server for 1 instance.

For example
Given:

root@TEST-PG-1234:[~]: puppet facts | grep hostname
    "hostname": "TEST-PG-1234",

Error:

Error: Failed to apply catalog: Parameter name failed on Postgresql_conf[authentication_timeout_TEST-PG-1234]: Invalid value "authentication_timeout_TEST-PG-1234". Valid values match /^[\w.]+$/.(file:/etc/puppetlabs/code/environments/dash_test/modules/postgresql/manifests/server/config_entry.pp, line: 89)

I think its related to this:

Expected Behavior

Puppet should be okay with dashes in the resource name.

Steps to Reproduce

Steps to reproduce the behavior:
Build an instance with dashes in the name.

Environment

  • Puppet 8.10.0
  • Red Hat Enterprise Linux release 8.10 (Ootpa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant