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
to inject value from key inside http://vault.foobar.com:8200/secret/data/ssl/params.
To me, this suggests that I can "just" use this as-is in my node.yaml files. However, for a given vault path puppet/data/nodes/node01.example.com/vault_gitlab with a key of token and a value of some_value, and a line in my yaml like this:
I get exactly nothing. If I use lookup() in my corresponding profile, I get the correct value back.
So, I am missing something, quite possibly something trivial. But what? My guess'd be that I have not defined a class vault_storage anywhere, but how would I go ahead and define the alias correctly?
Relevant part of my hiera.yaml looks like this:
---
version: 5defaults:
datadir: 'data'data_hash: 'yaml_data'hierarchy:
## Hashicorp Vault
- name: 'Hiera-vault lookup'lookup_key: hiera_vaultoptions:
confine_to_keys:
- '^vault_.*'address: https://vault.example.comtoken: /etc/puppetlabs/code/vault_token.txtv2_guess_mount: falsev1_lookup: falsemounts:
puppet/data:
- 'nodes/%{::trusted.certname}'
- 'global'## Server
- name: 'Machine specific data for one configured node served by puppet.'path: 'nodes/%{trusted.certname}.yaml'
Edit: I also tried with the following hiera.yaml:
---
version: 5defaults:
datadir: 'data'data_hash: 'yaml_data'hierarchy:
## Hashicorp Vault
- name: 'Hiera-vault lookup'lookup_key: hiera_vaultoptions:
confine_to_keys:
- '^vault_storage::.*'
- '^vault_.*'strip_from_keys:
- 'vault_storage::'address: https://vault.example.comtoken: /etc/puppetlabs/code/vault_token.txtv2_guess_mount: falsev1_lookup: falsemounts:
puppet/data:
- 'nodes/%{::trusted.certname}'
- 'global'## Server
- name: 'Machine specific data for one configured node served by puppet.'path: 'nodes/%{trusted.certname}.yaml'
Still to no avail.
The text was updated successfully, but these errors were encountered:
So, I've been reading the README, and came across this:
To me, this suggests that I can "just" use this as-is in my node.yaml files. However, for a given vault path
puppet/data/nodes/node01.example.com/vault_gitlab
with a key oftoken
and a value ofsome_value
, and a line in my yaml like this:I get exactly nothing. If I use
lookup()
in my corresponding profile, I get the correct value back.So, I am missing something, quite possibly something trivial. But what? My guess'd be that I have not defined a class
vault_storage
anywhere, but how would I go ahead and define the alias correctly?Relevant part of my
hiera.yaml
looks like this:Edit: I also tried with the following hiera.yaml:
Still to no avail.
The text was updated successfully, but these errors were encountered: