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

Allow Vault configuration from VAULT_ADDR environment variable #8

Closed
petems opened this issue Nov 22, 2018 · 1 comment
Closed

Allow Vault configuration from VAULT_ADDR environment variable #8

petems opened this issue Nov 22, 2018 · 1 comment

Comments

@petems
Copy link
Member

petems commented Nov 22, 2018

What are you seeing

The Vault address has to be provided within the Puppet code to use the lookup. It would be nicer if this was an optional parameter, and the Puppet agent could use the VAULT_ADDR environment variable to find the Vault address instead.

What behaviour did you expect instead

cat /etc/sysconfig/puppet
VAULT_ADDR=http://vault.example.com:8200

THen we dont have to specify

$d = Deferred('vault_lookup::lookup', ["secret/test"])

node default {
  notify { example :
    message => $d
  }
}

Output log

Any additional information you'd like to impart

@petems
Copy link
Member Author

petems commented Nov 27, 2018

PR open! 👍

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