Skip to content

How to assign/use multiple roles #104

Closed Answered by lkubb
maennlse asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the thorough explanation! This is an issue that has itched me for a long time with no clear answer so far. I really wish Vault supported composite values for templates, but it does not seem likely this will exist at some point.

Joining the entity metadata into a sorted comma-separated list is a very poor workaround bandaid for this missing functionality and I'm open to any suggestions for improving the situation, e.g. assigning role_0 etc. instead (or in addition). It's still not ideal, but (on first glance!) seems like a much better compromise.

I use multiple minion roles myself, but template the assigned Vault roles instead:

vault:
  # ...
  policies:
    assign:
      - salt…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by maennlse
Comment options

You must be logged in to vote
1 reply
@lkubb
Comment options

lkubb Dec 9, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants