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

Deferred values don't seem to work for postgres_password (aka admin password) #1560

Open
barskern opened this issue Dec 18, 2023 · 1 comment

Comments

@barskern
Copy link

barskern commented Dec 18, 2023

Describe the Bug

When passing a Deferred value to the postgres_password parameter I get the following error message:

Failed on [...]:
  Apply failed to compile for [...]: 'postgresql::postgresql_escape' parameter 'input_string' expects a String value, got Deferred (file: /[...]/.modules/postgresql/manifests/server/passwd.pp, line: 28, column: 16)

Expected Behavior

Expected deferred values to work, that is simply setting the value to the deferred value.

Steps to Reproduce

Setup a default instance and run something similar to the below:

class { '::postgresql::server':
    postgres_password => Deferred('unwrap', [$admin_password_vault]),
}

Environment

  • Version: 8.2.1 (also with 10.0.2)
  • Platform: CentOS 7

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants