Skip to content

Commit

Permalink
Support Keycloak 12
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Dec 21, 2020
1 parent 2a0d62b commit ae421ec
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
- master
pull_request:
branches:
- main
- master

jobs:
unit:
Expand Down Expand Up @@ -68,7 +65,7 @@ jobs:
- "puppet6"
keycloak_version:
- "8.0.1"
- "10.0.1"
- "12.0.1"
keycloak_full:
- "no"
include:
Expand All @@ -78,15 +75,15 @@ jobs:
keycloak_full: "yes"
- set: "centos-7"
puppet: "puppet5"
keycloak_version: "10.0.1"
keycloak_version: "12.0.1"
keycloak_full: "yes"
- set: "centos-7"
puppet: "puppet6"
keycloak_version: "8.0.1"
keycloak_full: "yes"
- set: "centos-7"
puppet: "puppet6"
keycloak_version: "10.0.1"
keycloak_version: "12.0.1"
keycloak_full: "yes"
env:
BUNDLE_WITHOUT: development:release
Expand Down
6 changes: 3 additions & 3 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- puppet6
keycloak_version:
- '8.0.1'
- '10.0.1'
- '12.0.1'
keycloak_full: ['no']
acceptance_includes:
- set: centos-7
Expand All @@ -32,15 +32,15 @@
keycloak_full: 'yes'
- set: centos-7
puppet: puppet5
keycloak_version: 10.0.1
keycloak_version: 12.0.1
keycloak_full: 'yes'
- set: centos-7
puppet: puppet6
keycloak_version: 8.0.1
keycloak_full: 'yes'
- set: centos-7
puppet: puppet6
keycloak_version: 10.0.1
keycloak_version: 12.0.1
keycloak_full: 'yes'
.gitlab-ci.yml:
delete: true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ The keycloak module allows easy installation and management of Keycloak.

### Supported Versions of Keycloak

Currently this module supports Keycloak version 8.x to 9.x.
Currently this module supports Keycloak version 8.x to 12.x.

| Keycloak Version | Keycloak Puppet module versions |
| ---------------- | ------------------------------- |
| 3.x | 2.x |
| 4.x - 6.x | 3.x |
| 6.x - 8.x | 4.x - 5.x |
| 8.x - 9.x | 6.x |
| 8.x - 12.x | 6.x |

## Usage

Expand Down
6 changes: 5 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,11 @@
fail("Unsupported osfamily: ${facts['os']['family']}, module ${module_name} only support osfamilies Debian and Redhat")
}

$download_url = pick($package_url, "https://downloads.jboss.org/keycloak/${version}/keycloak-${version}.tar.gz")
if versioncmp($version, '12.0.0') >= 0 {
$download_url = pick($package_url, "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.tar.gz")
} else {
$download_url = pick($package_url, "https://downloads.jboss.org/keycloak/${version}/keycloak-${version}.tar.gz")
}
case $datasource_driver {
'h2': {
$datasource_connection_url = pick($datasource_url, "jdbc:h2:\${jboss.server.data.dir}/${datasource_dbname};AUTO_SERVER=TRUE")
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@
],
"pdk-version": "1.17.0",
"template-url": "https://github.com/treydock/pdk-templates.git#master",
"template-ref": "heads/master-0-gc5e50ff"
"template-ref": "heads/master-0-g1f52e6d"
}

0 comments on commit ae421ec

Please sign in to comment.