Hubs: use more variables

This commit is contained in:
Aurélien Bompard 2018-02-20 14:28:44 +00:00
parent 7b3cb4cbfb
commit 211f01e121
2 changed files with 7 additions and 7 deletions

View file

@ -47,7 +47,7 @@
args: args:
creates: "{{ hubs_conf_dir }}/client_secrets.json" creates: "{{ hubs_conf_dir }}/client_secrets.json"
notify: "hubs configuration change" 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 - name: Configure application to authenticate with the OIDC provider
@ -58,7 +58,7 @@
group: "{{ main_user }}" group: "{{ main_user }}"
mode: 0640 mode: 0640
notify: "hubs configuration change" 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 - name: Fix the permissions on the OIDC secrets file

View file

@ -1,13 +1,13 @@
{ {
"web": { "web": {
"client_id": "hubs", "client_id": "hubs",
"auth_uri": "https://id.stg.fedoraproject.org/openidc/Authorization", "auth_uri": "https://{{ hubs_oidc_url }}/openidc/Authorization",
"issuer": "https://id.stg.fedoraproject.org/openidc/", "issuer": "https://{{ hubs_oidc_url }}/openidc/",
"client_secret": "{{ hubs_stg_oidc_secret }}", "client_secret": "{{ hubs_stg_oidc_secret }}",
"token_uri": "https://id.stg.fedoraproject.org/openidc/Token", "token_uri": "https://{{ hubs_oidc_url }}/openidc/Token",
"userinfo_uri": "https://id.stg.fedoraproject.org/openidc/UserInfo", "userinfo_uri": "https://{{ hubs_oidc_url }}/openidc/UserInfo",
"redirect_uris": [ "redirect_uris": [
"https://hubs.stg.fedoraproject.org/oidc_callback" "{{ hubs_url }}/oidc_callback"
] ]
} }
} }