mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-06-05 08:29:12 -07:00
Merge pull request #266 from guidograzioli/major_bump_3
Bump major and ansible-core versions
This commit is contained in:
commit
a10bc95bfc
21 changed files with 27 additions and 23 deletions
|
@ -24,7 +24,7 @@ virtualenv $PATH_TO_DEV_VIRTUALENV
|
||||||
# activate the virtual env
|
# activate the virtual env
|
||||||
source $PATH_TO_DEV_VIRTUALENV/bin/activate
|
source $PATH_TO_DEV_VIRTUALENV/bin/activate
|
||||||
# install ansible and tools onto the virtualenv
|
# install ansible and tools onto the virtualenv
|
||||||
pip install yamllint 'molecule>=6.0' 'molecule-plugins[docker]' 'ansible-core>=2.15' ansible-lint
|
pip install yamllint 'molecule>=6.0' 'molecule-plugins[docker]' 'ansible-core>=2.16' ansible-lint
|
||||||
# install collection dependencies
|
# install collection dependencies
|
||||||
ansible-galaxy collection install -r requirements.yml
|
ansible-galaxy collection install -r requirements.yml
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
|
|
|
@ -12,7 +12,7 @@ Collection to install and configure [Keycloak](https://www.keycloak.org/) or [Re
|
||||||
<!--start requires_ansible-->
|
<!--start requires_ansible-->
|
||||||
## Ansible version compatibility
|
## Ansible version compatibility
|
||||||
|
|
||||||
This collection has been tested against following Ansible versions: **>=2.15.0**.
|
This collection has been tested against following Ansible versions: **>=2.16.0**.
|
||||||
|
|
||||||
Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions.
|
Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions.
|
||||||
<!--end requires_ansible-->
|
<!--end requires_ansible-->
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
antsibull>=0.17.0
|
antsibull>=0.17.0
|
||||||
antsibull-docs
|
antsibull-docs
|
||||||
antsibull-changelog
|
antsibull-changelog
|
||||||
ansible-core>=2.14.1
|
ansible-core>=2.16.0
|
||||||
ansible-pygments
|
ansible-pygments
|
||||||
sphinx-rtd-theme
|
sphinx-rtd-theme
|
||||||
git+https://github.com/felixfontein/ansible-basic-sphinx-ext
|
git+https://github.com/felixfontein/ansible-basic-sphinx-ext
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
namespace: middleware_automation
|
namespace: middleware_automation
|
||||||
name: keycloak
|
name: keycloak
|
||||||
version: "2.4.4"
|
version: "3.0.0"
|
||||||
readme: README.md
|
readme: README.md
|
||||||
authors:
|
authors:
|
||||||
- Romain Pelisse <rpelisse@redhat.com>
|
- Romain Pelisse <rpelisse@redhat.com>
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
---
|
---
|
||||||
requires_ansible: ">=2.15.0"
|
requires_ansible: ">=2.16.0"
|
||||||
|
|
|
@ -3,7 +3,7 @@ driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: registry.access.redhat.com/ubi8/ubi-init:latest
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "/usr/sbin/init"
|
command: "/usr/sbin/init"
|
||||||
|
|
|
@ -3,7 +3,7 @@ driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: registry.access.redhat.com/ubi8/ubi-init:latest
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "/usr/sbin/init"
|
command: "/usr/sbin/init"
|
||||||
|
@ -14,7 +14,7 @@ platforms:
|
||||||
published_ports:
|
published_ports:
|
||||||
- 0.0.0.0:8080:8080/tcp
|
- 0.0.0.0:8080:8080/tcp
|
||||||
- name: proxy
|
- name: proxy
|
||||||
image: registry.access.redhat.com/ubi8/ubi-init:latest
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "/usr/sbin/init"
|
command: "/usr/sbin/init"
|
||||||
|
|
|
@ -3,7 +3,7 @@ driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: registry.access.redhat.com/ubi8/ubi-init:latest
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "/usr/sbin/init"
|
command: "/usr/sbin/init"
|
||||||
|
|
|
@ -3,7 +3,7 @@ driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: registry.access.redhat.com/ubi8/ubi-init:latest
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "/usr/sbin/init"
|
command: "/usr/sbin/init"
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
keycloak_quarkus_systemd_wait_for_timeout: 20
|
keycloak_quarkus_systemd_wait_for_timeout: 20
|
||||||
keycloak_quarkus_systemd_wait_for_delay: 2
|
keycloak_quarkus_systemd_wait_for_delay: 2
|
||||||
keycloak_quarkus_systemd_wait_for_log: true
|
keycloak_quarkus_systemd_wait_for_log: true
|
||||||
|
keycloak_quarkus_restart_health_check: false # would fail because of self-signed cert
|
||||||
keycloak_quarkus_providers:
|
keycloak_quarkus_providers:
|
||||||
- id: http-client
|
- id: http-client
|
||||||
spi: connections
|
spi: connections
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
roles:
|
roles:
|
||||||
- role: keycloak_quarkus
|
- role: keycloak_quarkus
|
||||||
- role: keycloak_realm
|
- role: keycloak_realm
|
||||||
keycloak_url: "{{ keycloak_quarkus_hostname }}"
|
keycloak_url: http://instance:8080
|
||||||
keycloak_context: ''
|
keycloak_context: ''
|
||||||
keycloak_admin_user: "{{ keycloak_quarkus_bootstrap_admin_user }}"
|
keycloak_admin_user: "{{ keycloak_quarkus_bootstrap_admin_user }}"
|
||||||
keycloak_admin_password: "{{ keycloak_quarkus_bootstrap_admin_password }}"
|
keycloak_admin_password: "{{ keycloak_quarkus_bootstrap_admin_password }}"
|
||||||
|
|
|
@ -3,7 +3,7 @@ driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: instance
|
- name: instance
|
||||||
image: registry.access.redhat.com/ubi8/ubi-init:latest
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "/usr/sbin/init"
|
command: "/usr/sbin/init"
|
||||||
|
@ -31,6 +31,7 @@ provisioner:
|
||||||
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
||||||
env:
|
env:
|
||||||
ANSIBLE_FORCE_COLOR: "true"
|
ANSIBLE_FORCE_COLOR: "true"
|
||||||
|
PYTHONHTTPSVERIFY: 0
|
||||||
verifier:
|
verifier:
|
||||||
name: ansible
|
name: ansible
|
||||||
scenario:
|
scenario:
|
||||||
|
|
|
@ -102,8 +102,8 @@
|
||||||
- name: "Get Clients"
|
- name: "Get Clients"
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "https://instance:8443/admin/realms/TestRealm/clients"
|
url: "https://instance:8443/admin/realms/TestRealm/clients"
|
||||||
|
validate_certs: false
|
||||||
headers:
|
headers:
|
||||||
validate_certs: false
|
|
||||||
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
|
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
|
||||||
register: keycloak_clients
|
register: keycloak_clients
|
||||||
|
|
||||||
|
@ -114,15 +114,15 @@
|
||||||
- name: "Get Client {{ keycloak_client_uuid }}"
|
- name: "Get Client {{ keycloak_client_uuid }}"
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "https://instance:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}"
|
url: "https://instance:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}"
|
||||||
|
validate_certs: false
|
||||||
headers:
|
headers:
|
||||||
validate_certs: false
|
|
||||||
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
|
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
|
||||||
register: keycloak_test_client
|
register: keycloak_test_client
|
||||||
|
|
||||||
- name: "Get Client roles"
|
- name: "Get Client roles"
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "https://instance:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}/roles"
|
url: "https://instance:8443/admin/realms/TestRealm/clients/{{ keycloak_client_uuid }}/roles"
|
||||||
|
validate_certs: false
|
||||||
headers:
|
headers:
|
||||||
validate_certs: false
|
|
||||||
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
|
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"
|
||||||
register: keycloak_test_client_roles
|
register: keycloak_test_client_roles
|
||||||
|
|
|
@ -65,6 +65,7 @@ provisioner:
|
||||||
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
||||||
env:
|
env:
|
||||||
ANSIBLE_FORCE_COLOR: "true"
|
ANSIBLE_FORCE_COLOR: "true"
|
||||||
|
PYTHONHTTPSVERIFY: 0
|
||||||
verifier:
|
verifier:
|
||||||
name: ansible
|
name: ansible
|
||||||
scenario:
|
scenario:
|
||||||
|
|
|
@ -12,7 +12,7 @@ galaxy_info:
|
||||||
|
|
||||||
license: Apache License 2.0
|
license: Apache License 2.0
|
||||||
|
|
||||||
min_ansible_version: "2.15"
|
min_ansible_version: "2.16"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
|
|
|
@ -112,7 +112,7 @@ Role Defaults
|
||||||
|`keycloak_quarkus_restart_strategy`| Strategy task file for restarting in HA (one of provided restart/['serial.yml','none.yml','serial_then_parallel.yml']) or path to file when providing custom strategy | `restart/serial.yml` |
|
|`keycloak_quarkus_restart_strategy`| Strategy task file for restarting in HA (one of provided restart/['serial.yml','none.yml','serial_then_parallel.yml']) or path to file when providing custom strategy | `restart/serial.yml` |
|
||||||
|`keycloak_quarkus_restart_health_check`| Whether to wait for successful health check after restart | `true` |
|
|`keycloak_quarkus_restart_health_check`| Whether to wait for successful health check after restart | `true` |
|
||||||
|`keycloak_quarkus_restart_health_check_delay`| Seconds to let pass before starting healch checks | `10` |
|
|`keycloak_quarkus_restart_health_check_delay`| Seconds to let pass before starting healch checks | `10` |
|
||||||
|`keycloak_quarkus_restart_health_check_reries`| Number of attempts for successful health check before failing | `25` |
|
|`keycloak_quarkus_restart_health_check_retries`| Number of attempts for successful health check before failing | `25` |
|
||||||
|`keycloak_quarkus_restart_pause`| Seconds to wait between restarts in HA strategy | `15` |
|
|`keycloak_quarkus_restart_pause`| Seconds to wait between restarts in HA strategy | `15` |
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -163,5 +163,5 @@ keycloak_quarkus_supported_policy_types: ['password-blacklists']
|
||||||
keycloak_quarkus_restart_strategy: restart/serial.yml
|
keycloak_quarkus_restart_strategy: restart/serial.yml
|
||||||
keycloak_quarkus_restart_health_check: true
|
keycloak_quarkus_restart_health_check: true
|
||||||
keycloak_quarkus_restart_health_check_delay: 10
|
keycloak_quarkus_restart_health_check_delay: 10
|
||||||
keycloak_quarkus_restart_health_check_reries: 25
|
keycloak_quarkus_restart_health_check_retries: 25
|
||||||
keycloak_quarkus_restart_pause: 15
|
keycloak_quarkus_restart_pause: 15
|
||||||
|
|
|
@ -464,7 +464,7 @@ argument_specs:
|
||||||
description: "Seconds to let pass before starting healch checks"
|
description: "Seconds to let pass before starting healch checks"
|
||||||
default: 10
|
default: 10
|
||||||
type: 'int'
|
type: 'int'
|
||||||
keycloak_quarkus_restart_health_check_reries:
|
keycloak_quarkus_restart_health_check_retries:
|
||||||
description: "Number of attempts for successful health check before failing"
|
description: "Number of attempts for successful health check before failing"
|
||||||
default: 25
|
default: 25
|
||||||
type: 'int'
|
type: 'int'
|
||||||
|
|
|
@ -8,7 +8,7 @@ galaxy_info:
|
||||||
|
|
||||||
license: Apache License 2.0
|
license: Apache License 2.0
|
||||||
|
|
||||||
min_ansible_version: "2.15"
|
min_ansible_version: "2.16"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
url: "{{ keycloak.health_url }}"
|
url: "{{ keycloak.health_url }}"
|
||||||
register: keycloak_status
|
register: keycloak_status
|
||||||
until: keycloak_status.status == 200
|
until: keycloak_status.status == 200
|
||||||
retries: "{{ keycloak_quarkus_restart_health_check_reries }}"
|
retries: "{{ keycloak_quarkus_restart_health_check_retries }}"
|
||||||
delay: "{{ keycloak_quarkus_restart_health_check_delay }}"
|
delay: "{{ keycloak_quarkus_restart_health_check_delay }}"
|
||||||
when: internal_force_health_check | default(keycloak_quarkus_restart_health_check)
|
when: internal_force_health_check | default(keycloak_quarkus_restart_health_check)
|
||||||
|
|
||||||
|
|
|
@ -14,3 +14,4 @@
|
||||||
until: keycloak_status.status == 200
|
until: keycloak_status.status == 200
|
||||||
retries: 25
|
retries: 25
|
||||||
delay: 10
|
delay: 10
|
||||||
|
when: internal_force_health_check | default(keycloak_quarkus_restart_health_check)
|
||||||
|
|
|
@ -8,7 +8,7 @@ galaxy_info:
|
||||||
|
|
||||||
license: Apache License 2.0
|
license: Apache License 2.0
|
||||||
|
|
||||||
min_ansible_version: "2.15"
|
min_ansible_version: "2.16"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue