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

Keyspace permissions example wrong in cassandra_role #294

Open
discostur opened this issue Mar 13, 2025 · 1 comment
Open

Keyspace permissions example wrong in cassandra_role #294

discostur opened this issue Mar 13, 2025 · 1 comment
Assignees
Labels
bug This issue/PR relates to a bug.

Comments

@discostur
Copy link

https://galaxy.ansible.com/ui/repo/published/community/cassandra/content/module/cassandra_role/

- name: Create a user with specific permissions for specific keyspaces
  community.cassandra.cassandra_role:
    name: rhys
    password: 'secret'
    update_password: true
    state: present
    login: yes
    permissions:
      mykeyspace:
        - "ALL PERMISSIONS" # Same as GRANT ALL PERMISSIONS ON mykeyspace TO rhys;
      mydummy:
        - "SELECT"
        - "EXECUTE" # Same as GRANT SELECT, EXECUTE ON mydummy TO rhys;
      all_keyspaces:
        - "SELECT" # Same as GRANT SELECT ON ALL KEYSPACES TO rhys;

It has to be keyspace_permissions and not permissions.

@rhysmeister
Copy link
Collaborator

Fix in #295

@rhysmeister rhysmeister self-assigned this Mar 13, 2025
@rhysmeister rhysmeister added the bug This issue/PR relates to a bug. label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants