Skip to content

Commit

Permalink
OPSEXP-2304 Fixup community workflow (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Sep 26, 2023
1 parent ecdb427 commit 55937e6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- "*.md"
jobs:
docker:
name: Test ${{ matrix.role.name }} role on ${{ matrix.molecule_distro.image }}
# -A* and -M* are not available without nexus credentials
if: |
! startsWith(github.head_ref, 'next/')
Expand All @@ -34,8 +35,10 @@ jobs:
- name: transformers
exclude:
# Keycloak collection doesn't support ubuntu
- name: identity
image: ubuntu:20.04
- role:
name: identity
molecule_distro:
image: ubuntu:20.04
env:
PY_COLORS: 1
PYTHONUNBUFFERED: 1
Expand Down
14 changes: 12 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,23 @@
"is_secret": false
}
],
"roles/identity/molecule/default/converge.yml": [
{
"type": "Secret Keyword",
"filename": "roles/identity/molecule/default/converge.yml",
"hashed_secret": "76b90e2bab0dda9507c2c61ac09281d6cf1ea41e",
"is_verified": false,
"line_number": 5,
"is_secret": false
}
],
"roles/identity/tasks/realm.yml": [
{
"type": "Secret Keyword",
"filename": "roles/identity/tasks/realm.yml",
"hashed_secret": "973503d55aba40e89d4ab4c16783bc9a159c512e",
"is_verified": false,
"line_number": 14,
"line_number": 13,
"is_secret": false
}
],
Expand Down Expand Up @@ -249,5 +259,5 @@
}
]
},
"generated_at": "2023-09-20T08:47:39Z"
"generated_at": "2023-09-26T14:44:04Z"
}
1 change: 0 additions & 1 deletion roles/identity/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ argument_specs:
options:
identity_admin_username:
type: str
required: true
default: admin
description: |
Username of the keycloak instance admin user
Expand Down
2 changes: 2 additions & 0 deletions roles/identity/molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
- name: Converge
hosts: all
vars:
identity_admin_password: keycloak12345
tasks:
- name: "Include identity"
ansible.builtin.include_role:
Expand Down
7 changes: 3 additions & 4 deletions roles/identity/tasks/realm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
vars:
theme_version: "{{ identity_alfresco_theme_version }}"
ansible.builtin.unarchive:
src: "https://github.com/Alfresco/alfresco-keycloak-theme/releases/download/
{{ theme_version }}/alfresco-keycloak-theme-{{ theme_version }}.zip"
src: https://github.com/Alfresco/alfresco-keycloak-theme/releases/download/{{ theme_version }}/alfresco-keycloak-theme-{{ theme_version }}.zip
dest: /opt/keycloak/keycloak-{{ identity_keycloak_quarkus_version }}/themes
remote_src: true

Expand Down Expand Up @@ -39,6 +38,8 @@
- ru
- sv
- zh-CN
tags:
- molecule-idempotence-notest

- name: Configure basic alfresco client
community.general.keycloak_client:
Expand All @@ -50,6 +51,4 @@
realm: alfresco
client_id: alfresco
enabled: true
redirect_uris: "{{ known_urls | map('regex_replace', '(.*)$', '\\1*') | list }}"
web_origins: "{{ known_urls }}"
state: present

0 comments on commit 55937e6

Please sign in to comment.