Give the clean packagers groups toddler access to the corresponding service's keytab
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
1e8c7dcba9
commit
097b8f9214
3 changed files with 17 additions and 1 deletions
|
@ -46,11 +46,17 @@
|
||||||
tags:
|
tags:
|
||||||
- appowners
|
- appowners
|
||||||
|
|
||||||
|
# Keytabs
|
||||||
- role: openshift/keytab
|
- role: openshift/keytab
|
||||||
keytab_app: poddlers
|
keytab_app: poddlers
|
||||||
keytab_key: service.keytab
|
keytab_key: service.keytab
|
||||||
keytab_secret_name: keytab
|
keytab_secret_name: keytab
|
||||||
keytab_service: toddlers
|
keytab_service: toddlers
|
||||||
|
- role: openshift/keytab
|
||||||
|
keytab_app: poddlers
|
||||||
|
keytab_key: sync-group.keytab
|
||||||
|
keytab_secret_name: sync-group-keytab
|
||||||
|
keytab_service: toddlers-sync-group
|
||||||
|
|
||||||
- role: openshift/ipa-client
|
- role: openshift/ipa-client
|
||||||
ipa_client_app: poddlers
|
ipa_client_app: poddlers
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
- name: Create toddlers toddlers-sync-groups service
|
- name: Create toddlers toddlers-sync-groups service
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: "keytab/service" # noqa role-name[path]
|
name: "ipa/service" # noqa role-name[path]
|
||||||
vars:
|
vars:
|
||||||
host: os-control01{{ env_suffix }}.fedoraproject.org # noqa: var-naming[no-role-prefix]
|
host: os-control01{{ env_suffix }}.fedoraproject.org # noqa: var-naming[no-role-prefix]
|
||||||
service: toddlers-sync-group # noqa: var-naming[no-role-prefix]
|
service: toddlers-sync-group # noqa: var-naming[no-role-prefix]
|
||||||
|
|
|
@ -30,9 +30,19 @@ spec:
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{ common_volume_mounts() }}
|
{{ common_volume_mounts() }}
|
||||||
|
{% if toddler.name == "clean-packagers-groups" %}
|
||||||
|
- name: sync-group-keytab-volume
|
||||||
|
mountPath: /etc/sync-group-keytabs
|
||||||
|
readOnly: true
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
{{ common_volumes() }}
|
{{ common_volumes() }}
|
||||||
|
{% if toddler.name == "clean-packagers-groups" %}
|
||||||
|
- name: sync-group-keytab-volume
|
||||||
|
secret:
|
||||||
|
secretName: sync-group-keytab
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue