You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: puppetserver version: 7.13.0
Distribution: Centos9
How to reproduce (e.g Puppet code you use)
I've happened the following lines in /etc/sysconfig/puppet on the puppet server
VAULT_ADDR=https://xxxx:8200/
VAULT_NAMESPACE=admin/puppet
VAULT_AUTH_METHOD=approle
VAULT_ROLE_ID=xxxxxx..xxxx
VAULT_SECRET_ID=xxxx..xxx
What are you seeing
The module does not load the environment variable.
What behaviour did you expect instead
For the module to load these environment variables
The text was updated successfully, but these errors were encountered:
but I got this error : No vault_addr given and VAULT_ADDR env variable not set
It works perfect if I set the vault_addr directly in the lookup call. I've also try to export the env var or to define it into /etc/default/puppet .... but same error here.
+1, i'm trying to use function on server instead of agents, and i just have no idea how to add env to puppet's process.
Anything from /etc/default are ignored. Only way it works is to use export ###, and run puppet agent manually.
Also i've tried to add envs directly to systemd unit within Environment=, also didnt help.
Here in documentation you can file property to set envs for jruby runtime via file puppetserver.conf.
I've added my approle creds here to avoid mentioning it in code. It works !
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I've happened the following lines in /etc/sysconfig/puppet on the puppet server
VAULT_ADDR=https://xxxx:8200/
VAULT_NAMESPACE=admin/puppet
VAULT_AUTH_METHOD=approle
VAULT_ROLE_ID=xxxxxx..xxxx
VAULT_SECRET_ID=xxxx..xxx
What are you seeing
The module does not load the environment variable.
What behaviour did you expect instead
For the module to load these environment variables
The text was updated successfully, but these errors were encountered: