Skip to content

Commit

Permalink
Merge pull request #128 from wei-lee/AGMS-192-update-plan
Browse files Browse the repository at this point in the history
fix:add a new plan to allow customise images
  • Loading branch information
Wei Li authored Mar 13, 2019
2 parents 9a3b7bd + 915d732 commit 9b9a21f
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 55 deletions.
84 changes: 60 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,30 +117,66 @@ QUNUQ0V3QkFLcHhCMFNrR2RoR3FsT0tCZzAvS0c2RTdkaTVUL0IxS0JySEdjNldrR0FBQUFBRWxG\
VGtTdVFtQ0MiCiAgZG9jdW1lbnRhdGlvblVybDogImh0dHBzOi8vZG9jcy5hZXJvZ2Vhci5vcmcv\
ZXh0ZXJuYWwvYXBiL2tleWNsb2FrLmh0bWwiCiAgcHJvdmlkZXJEaXNwbGF5TmFtZTogIlJlZCBI\
YXQsIEluYy4iCiAgc2VydmljZU5hbWU6IGtleWNsb2FrCnBsYW5zOgogIC0gbmFtZTogZGVmYXVs\
dAogICAgZGVzY3JpcHRpb246IERlcGxveSBrZXljbG9hawogICAgZnJlZTogVHJ1ZQogICAgbWV0\
YWRhdGE6CiAgICAgIG1vYmlsZWNsaWVudF9iaW5kX3BhcmFtZXRlcnNfZGF0YToKICAgICAgICAt\
ICd7Im5hbWUiOiAiQ0xJRU5UX0lEIiwgInZhbHVlIjogIm1ldGFkYXRhLm5hbWUiLCAidHlwZSI6\
ICJwYXRoIn0nCiAgICAgICAgLSAneyJuYW1lIjogIkNMSUVOVF9UWVBFIiwgInZhbHVlIjogInB1\
YmxpYyIsICJ0eXBlIjogImRlZmF1bHQifScKICAgICAgc2VydmljZWluc3RhbmNlX2JpbmRfcGFy\
YW1ldGVyc19kYXRhOgogICAgICAgIC0gJ3sibmFtZSI6ICJDTElFTlRfSUQiLCAidmFsdWUiOiAi\
bWV0YWRhdGEubmFtZSIsICJ0eXBlIjogInBhdGgifScKICAgICAgICAtICd7Im5hbWUiOiAiQ0x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2hhcmVk\
IHNlcnZpY2UKICAgIC0gbmFtZTogU0hBUkVEX0hPU1QKICAgICAgcmVxdWlyZWQ6IEZhbHNlCiAg\
ICAgIHR5cGU6IHN0cmluZwogICAgICB0aXRsZTogVVJMIG9mIHRoZSBzaGFyZWQgc2VydmljZQog\
ICAgYmluZF9wYXJhbWV0ZXJzOgogICAgLSBuYW1lOiBDTElFTlRfSUQKICAgICAgcmVxdWlyZWQ6\
IFRydWUKICAgICAgdGl0bGU6IE1vYmlsZSBjbGllbnQgSUQvU2VydmljZSBJRAogICAgICB0eXBl\
OiBzdHJpbmcKICAgIC0gbmFtZTogQ0xJRU5UX1RZUEUKICAgICAgcmVxdWlyZWQ6IFRydWUKICAg\
ICAgdGl0bGU6IEtleWNsb2FrIGNsaWVudCB0eXBlCiAgICAgIHR5cGU6IGVudW0KICAgICAgZW51\
bTogWydiZWFyZXInLCAncHVibGljJ10KICAgICAgZGVmYXVsdDogcHVibGlj"

COPY playbooks /opt/apb/project
COPY playbooks /opt/apb/actions
Expand Down
84 changes: 60 additions & 24 deletions Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -117,30 +117,66 @@ QUNUQ0V3QkFLcHhCMFNrR2RoR3FsT0tCZzAvS0c2RTdkaTVUL0IxS0JySEdjNldrR0FBQUFBRWxG\
VGtTdVFtQ0MiCiAgZG9jdW1lbnRhdGlvblVybDogImh0dHBzOi8vZG9jcy5hZXJvZ2Vhci5vcmcv\
ZXh0ZXJuYWwvYXBiL2tleWNsb2FrLmh0bWwiCiAgcHJvdmlkZXJEaXNwbGF5TmFtZTogIlJlZCBI\
YXQsIEluYy4iCiAgc2VydmljZU5hbWU6IGtleWNsb2FrCnBsYW5zOgogIC0gbmFtZTogZGVmYXVs\
dAogICAgZGVzY3JpcHRpb246IERlcGxveSBrZXljbG9hawogICAgZnJlZTogVHJ1ZQogICAgbWV0\
YWRhdGE6CiAgICAgIG1vYmlsZWNsaWVudF9iaW5kX3BhcmFtZXRlcnNfZ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ICB0\
aXRsZTogS2V5Y2xvYWsgYWRtaW4gcGFzc3dvcmQKICAgIC0gbmFtZTogQ1VTVE9NX1JFQUxNX05B\
TUUKICAgICAgcmVxdWlyZWQ6IEZhbHNlCiAgICAgIHR5cGU6IHN0cmluZwogICAgICB0aXRsZTog\
TmFtZSBvZiB0aGUgS2V5Y2xvYWsgcmVhbG0gKGRlZmF1bHRzIHRvIGN1cnJlbnQgbmFtZXNwYWNl\
KQogICAgLSBuYW1lOiBVU0VfU0hBUkVEX1NFUlZJQ0UKICAgICAgcmVxdWlyZWQ6IEZhbHNlCiAg\
ICAgIHR5cGU6IGJvb2wKICAgICAgdGl0bGU6IENvbm5lY3QgdG8gYW4gZXhpc3Rpbmcgc2hhcmVk\
IHNlcnZpY2UKICAgIC0gbmFtZTogU0hBUkVEX0hPU1QKICAgICAgcmVxdWlyZWQ6IEZhbHNlCiAg\
ICAgIHR5cGU6IHN0cmluZwogICAgICB0aXRsZTogVVJMIG9mIHRoZSBzaGFyZWQgc2VydmljZQog\
ICAgYmluZF9wYXJhbWV0ZXJzOgogICAgLSBuYW1lOiBDTElFTlRfSUQKICAgICAgcmVxdWlyZWQ6\
IFRydWUKICAgICAgdGl0bGU6IE1vYmlsZSBjbGllbnQgSUQvU2VydmljZSBJRAogICAgICB0eXBl\
OiBzdHJpbmcKICAgIC0gbmFtZTogQ0xJRU5UX1RZUEUKICAgICAgcmVxdWlyZWQ6IFRydWUKICAg\
ICAgdGl0bGU6IEtleWNsb2FrIGNsaWVudCB0eXBlCiAgICAgIHR5cGU6IGVudW0KICAgICAgZW51\
bTogWydiZWFyZXInLCAncHVibGljJ10KICAgICAgZGVmYXVsdDogcHVibGlj" \
name="mobile-1-tech-preview/mobile-identity-management-apb" \
io.k8s.display-name="Mobile Identity Management APB" \
io.k8s.description="An APB that deploys Keycloak/RH-SSO on OpenShift through the service catalog, and provides a binding action for mobile use cases" \
Expand Down
60 changes: 59 additions & 1 deletion apb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ metadata:
serviceName: keycloak
plans:
- name: default
description: Deploy keycloak
description: This plan should be used in most use cases
free: True
metadata:
displayName: Default
mobileclient_bind_parameters_data:
- '{"name": "CLIENT_ID", "value": "metadata.name", "type": "path"}'
- '{"name": "CLIENT_TYPE", "value": "public", "type": "default"}'
Expand Down Expand Up @@ -57,3 +58,60 @@ plans:
type: enum
enum: ['bearer', 'public']
default: public
- name: custom
description: This plan can be used if images need to be customized
free: True
metadata:
displayName: User Specified
mobileclient_bind_parameters_data:
- '{"name": "CLIENT_ID", "value": "metadata.name", "type": "path"}'
- '{"name": "CLIENT_TYPE", "value": "public", "type": "default"}'
serviceinstance_bind_parameters_data:
- '{"name": "CLIENT_ID", "value": "metadata.name", "type": "path"}'
- '{"name": "CLIENT_TYPE", "value": "bearer", "type": "default"}'
parameters:
- name: custom_idm_image
title: Identity management container image
description: The image to use for the Identity Management service (You shouldn't need to change this)
default: docker.io/jboss/keycloak:4.8.3.Final
type: string
required: True
- name: custom_postgresql_image
title: PostgreSQL container image
description: The image to use for the PostgreSQL database (You shouldn't need to change this)
default: docker.io/centos/postgresql-96-centos7:9.6
type: string
required: True
- name: ADMIN_USERNAME
required: True
default: admin
type: string
title: Keycloak admin username
- name: ADMIN_PASSWORD
required: True
default: admin
type: string
title: Keycloak admin password
- name: CUSTOM_REALM_NAME
required: False
type: string
title: Name of the Keycloak realm (defaults to current namespace)
- name: USE_SHARED_SERVICE
required: False
type: bool
title: Connect to an existing shared service
- name: SHARED_HOST
required: False
type: string
title: URL of the shared service
bind_parameters:
- name: CLIENT_ID
required: True
title: Mobile client ID/Service ID
type: string
- name: CLIENT_TYPE
required: True
title: Keycloak client type
type: enum
enum: ['bearer', 'public']
default: public
8 changes: 4 additions & 4 deletions roles/provision-keycloak-apb/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
playbook_debug: false

keycloak_image: docker.io/jboss/keycloak
keycloak_image_tag: 4.8.3.Final
default_keycloak_image: docker.io/jboss/keycloak:4.8.3.Final
keycloak_image: '{{ custom_idm_image | default(default_keycloak_image, true) }}'

postgres_image: docker.io/centos/postgresql-96-centos7
postgres_image_tag: '9.6'
default_postgres_image: docker.io/centos/postgresql-96-centos7:9.6
postgres_image: '{{ custom_postgresql_image | default(default_postgres_image, true) }}'
postgres_database_name: keycloak

# Keycloak dashboard config
Expand Down
2 changes: 1 addition & 1 deletion roles/provision-keycloak-apb/tasks/provision-keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
secret_key_ref:
name: '{{ postgres_secret_name }}'
key: database-name
image: '{{keycloak_image }}:{{ keycloak_image_tag }}'
image: '{{ keycloak_image }}'
name: '{{ keycloak_service_name }}'
ports:
- container_port: 8080
Expand Down
2 changes: 1 addition & 1 deletion roles/provision-keycloak-apb/tasks/provision-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
name: '{{ postgres_service_name }}'
containers:
- name: postgresql
image: '{{ postgres_image }}:{{ postgres_image_tag }}'
image: '{{ postgres_image }}'
ports:
- container_port: 5432
protocol: TCP
Expand Down

0 comments on commit 9b9a21f

Please sign in to comment.