salt-pillar-vault icon indicating copy to clipboard operation
salt-pillar-vault copied to clipboard

Dict as key

Open githubcdr opened this issue 7 years ago • 3 comments

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?

githubcdr avatar Feb 20 '17 08:02 githubcdr

Could you provide more context? Is 'startswith' somewhere in your vault.conf?

leonkatz avatar Mar 08 '17 08:03 leonkatz

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

truches avatar Jun 21 '17 13:06 truches

I have a pull request that fixes using a dictionary object as vault pillar data.

leonkatz avatar Jun 26 '17 20:06 leonkatz