Skip to content

Commit

Permalink
Fixed for issue stormshift/support#218
Browse files Browse the repository at this point in the history
  • Loading branch information
rbo committed Jan 3, 2025
1 parent 3b97a09 commit e8c623a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions ansible-navigator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ansible-navigator:
execution-environment:
environment-variables:
pass:
- K8S_AUTH_KUBECONFIG
- IPA_HOST
- IPA_PASS
- IPA_USER
Expand Down
17 changes: 8 additions & 9 deletions configure-oauth-sso.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
# Execution
# cp -v $KUBECONFIG .
# /Users/rbohne/.kube/.switch_tmp/config.2962012707.tmp -> ./config.2962012707.tmp
# export K8S_AUTH_KUBECONFIG=$(basename $KUBECONFIG)
# ansible-navigator run configure-oauth-sso.yaml \
# --vault-password-file=.vault_pass

# This is use a test
- hosts: localhost
connection: local
gather_facts: false
vars:
sso_admin_pw: ...
tasks:

- name: debug
shell:
env | grep K8S
# At HCP it's empty
- name: Fetch cluster information - oauth url
kubernetes.core.k8s_info:
api_version: "config.openshift.io/v1"
Expand All @@ -35,7 +35,6 @@
- coe-sso
- coe-sso-admin
community.general.keycloak_client:

validate_certs: false
auth_keycloak_url: https://sso.coe.muc.redhat.com
auth_realm: master
Expand All @@ -45,7 +44,7 @@
realm: "{{ item }}"
client_id: "{{ oauth_hostname }}"
secret: "{{ client_secret }}"
name: "{{ oauth_hostname }}"
name: "{{ oauth_hostname }}"
redirect_uris:
- "https://{{ oauth_hostname }}/oauth2callback/*"
web_origins:
Expand Down

0 comments on commit e8c623a

Please sign in to comment.