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:
parent
9970699623
commit
fde5e94e68
2 changed files with 20 additions and 0 deletions
|
@ -33,6 +33,24 @@
|
||||||
- notifs
|
- notifs
|
||||||
- notifs/backend
|
- 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
|
- name: copy database configuration
|
||||||
template: >
|
template: >
|
||||||
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
|
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
|
||||||
|
|
2
roles/notifs/backend/templates/override.conf.j2
Normal file
2
roles/notifs/backend/templates/override.conf.j2
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[service]
|
||||||
|
Environment=KRB5_CLIENT_KTNAME=/etc/krb5.fedmsg-hub-3_notifs-backend01.{{ env_prefix }}iad2.fedoraproject.org.keytab
|
Loading…
Add table
Add a link
Reference in a new issue