notifs / backend / staging: override the fedmsg-hub-3 service for fasjson

We need to tell fasjson what keytab to use, so we should override the
service file here and pass it as a env variable.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-09-28 16:27:38 -07:00
parent 9970699623
commit fde5e94e68
2 changed files with 20 additions and 0 deletions

View file

@ -33,6 +33,24 @@
- notifs
- notifs/backend
- name: ensure systemd drop-in directory exists
file: >
dest=/etc/systemd/system/fedmsg-hub-3.service.d
state=directory
tags:
- notifs
- notifs/backend
when:
inventory_hostname.startswith('notifs-backend02') or env == 'staging'
- name: install fedmsg-hub-3 systemd drop-in
template: src=override.conf dest=/etc/systemd/system/fedmsg-hub-3.service.d/override.conf owner=root group=root mode=644
tags:
- notifs
- notifs/backend
when:
inventory_hostname.startswith('notifs-backend02') or env == 'staging'
- name: copy database configuration
template: >
src={{ item }} dest=/etc/fedmsg.d/{{ item }}

View file

@ -0,0 +1,2 @@
[service]
Environment=KRB5_CLIENT_KTNAME=/etc/krb5.fedmsg-hub-3_notifs-backend01.{{ env_prefix }}iad2.fedoraproject.org.keytab