cyberark / conjur-puppet

Official Puppet module for CyberArk Conjur
https://forge.puppet.com/cyberark/conjur
Apache License 2.0
6 stars 3 forks source link

Use hash object for passing extra info to deferred function #184

Closed sgnn7 closed 4 years ago

sgnn7 commented 4 years ago

Is your feature request related to a problem? Please describe.

Use of positional arguments in deferred function use seems a bit clunky so we should try to see if we can use a hash of options instead

Describe the solution you would like

$dbpass = Sensitive(Deferred(conjur::secret, ['production/postgres/password', { appliance_url => "https://my.conjur.org", account => "myaccount", authn_account => "host/myhost", authn_api_key => Sensitive("2z9mndg1950gcx1mcrs6w18bwnp028dqkmc34vj8gh2p500ny1qk8n"), ssl_certificate => $sslcert }))



## Describe alternatives you have considered

N/A

## Additional context

N/A
sgnn7 commented 4 years ago

Released with v3.0.0rc3. Closing.