Skip to content

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

Open
@barskern

Description

@barskern

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions