Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publisher_acl and underlying keys #376

Closed
aanriot opened this issue Jun 28, 2018 · 1 comment
Closed

publisher_acl and underlying keys #376

aanriot opened this issue Jun 28, 2018 · 1 comment

Comments

@aanriot
Copy link
Contributor

aanriot commented Jun 28, 2018

Hello,

According to the SaltStack documentation on publisher_acl, it is possible for each user to either list functions (it will apply to all minions), or minions and functions available on them, as subkeys. In the later case (see user2), we would have to handle 2 nested loops. For example:

publisher_acl:
    user1:
        - pkg.*
    user2:
        - prod.*:
            - pkg.*

For now, it seems that minion functions under minion names or patterns (see user2) are not supported by the formula, it will generate the following lines:

user2:
    - '{'prod.*': ['pkg.*']}'

instead of the working ones below:

user2:`
    - 'prod.*': ['pkg.*']

Any feeling on this? Do we have to support both cases in the formula?

Thanks a lot.

@aanriot
Copy link
Contributor Author

aanriot commented Jul 12, 2018

It should be fixed now.

@aanriot aanriot closed this as completed Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant