Skip to content

Access the values of attributes from get method #288

Open
@ncode

Description

@ncode

Use Case

Allow credentials to be passed to the provider without storing those on the local machine

Describe the Solution You Would Like

    vault_secret_engine { 'nomad':
      type        => 'nomad',
      ensure      => 'present',
      description => 'dynamic token management for nomad',
      vault_token => 'my super token',
    }

Writing providers like this one for vault or even the consul one (https://github.com/solarkennedy/puppet-consul/blob/master/lib/puppet/provider/consul_policy/default.rb) some times require different tokens for each type of operation, the issue is that you don't have access to attributes during get or prefetch and it leads to hacks to make it work. I'd like have access to specific values so it become possible to use these values on API requests without the need to a transport.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions