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

Use keycloak_realm as default for sub-entities #180

Merged

Conversation

guidograzioli
Copy link
Member

@guidograzioli guidograzioli commented Mar 25, 2024

Default realm for entities like federation or client to keycloak_realm top-level variable when the dictionary key is not defined. This allows to reduce:

  roles:
    - role: middleware_automation.keycloak.keycloak_realm
      keycloak_realm: TestRealm
      keycloak_clients:
        - name: TestClient1
          client_id: TestClient1
          realm: TestRealm
          users:
            - username: TestUser
              password: password
              client_roles:
                - client: TestClient1
                  role: TestClient1User
                  realm: TestRealm

to:

  roles:
    - role: middleware_automation.keycloak.keycloak_realm
      keycloak_realm: TestRealm
      keycloak_clients:
        - name: TestClient1
          client_id: TestClient1
          users:
            - username: TestUser
              password: password
              client_roles:
                - client: TestClient1
                  role: TestClient1User

Fix #179

@guidograzioli guidograzioli added the minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix label Mar 25, 2024
@guidograzioli guidograzioli merged commit c1da6ea into ansible-middleware:main Mar 25, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keycloak_realm role requires realm defined in multiple places
1 participant