Hubs: use more variables
This commit is contained in:
parent
7b3cb4cbfb
commit
211f01e121
2 changed files with 7 additions and 7 deletions
|
@ -47,7 +47,7 @@
|
|||
args:
|
||||
creates: "{{ hubs_conf_dir }}/client_secrets.json"
|
||||
notify: "hubs configuration change"
|
||||
when: inventory_hostname == 'hubs-dev.fedorainfracloud.org'
|
||||
when: hubs_oidc_url == "iddev.fedorainfracloud.org"
|
||||
|
||||
|
||||
- name: Configure application to authenticate with the OIDC provider
|
||||
|
@ -58,7 +58,7 @@
|
|||
group: "{{ main_user }}"
|
||||
mode: 0640
|
||||
notify: "hubs configuration change"
|
||||
when: inventory_hostname != 'hubs-dev.fedorainfracloud.org'
|
||||
when: hubs_oidc_url != "iddev.fedorainfracloud.org"
|
||||
|
||||
|
||||
- name: Fix the permissions on the OIDC secrets file
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"web": {
|
||||
"client_id": "hubs",
|
||||
"auth_uri": "https://id.stg.fedoraproject.org/openidc/Authorization",
|
||||
"issuer": "https://id.stg.fedoraproject.org/openidc/",
|
||||
"auth_uri": "https://{{ hubs_oidc_url }}/openidc/Authorization",
|
||||
"issuer": "https://{{ hubs_oidc_url }}/openidc/",
|
||||
"client_secret": "{{ hubs_stg_oidc_secret }}",
|
||||
"token_uri": "https://id.stg.fedoraproject.org/openidc/Token",
|
||||
"userinfo_uri": "https://id.stg.fedoraproject.org/openidc/UserInfo",
|
||||
"token_uri": "https://{{ hubs_oidc_url }}/openidc/Token",
|
||||
"userinfo_uri": "https://{{ hubs_oidc_url }}/openidc/UserInfo",
|
||||
"redirect_uris": [
|
||||
"https://hubs.stg.fedoraproject.org/oidc_callback"
|
||||
"{{ hubs_url }}/oidc_callback"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue