salt-pillar-vault
salt-pillar-vault copied to clipboard
Dict as key
It seems you can't use a dict as a key with current version, it gives the following error.
Failed to load ext_pillar vault: 'dict' object has no attribute 'startswith'
Is this a bug or am I doing it wrong?
Could you provide more context? Is 'startswith' somewhere in your vault.conf?
i try to use many secret in my ext_pillar for many day and i don't understand how it's work. Why i can have 3 secret value variables ? I appreciate a example there is my file.
vault.conf vault: vault.host: 127.0.0.1 vault.port: 8200 vault.scheme: http vault-token: 123098sdf0-...;...
ext_pillar:
- vault: vault path=secret/salt
- vault: vault path=secret/salt1
- vault: vault path=secret/salt2
salt 'minion' pillar.items minion passwd: roger2
vault read secret/salt key value ... .... passwd rogeraa
vault read secret/salt1 key value ... .... passwd roger1
vault read secret/salt2 key value ... .... passwd roger2
I have a pull request that fixes using a dictionary object as vault pillar data.