maubot: configure fedora messaging
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
42de862098
commit
21a0370365
3 changed files with 35 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
roles:
|
||||
- role: rabbit/user
|
||||
username: "zodbot-{{ env_short }}"
|
||||
username: "maubot{{ env_suffix }}"
|
||||
sent_topics: ^org\.fedoraproject\.{{ env_short }}\.meetbot\..*
|
||||
|
||||
- role: openshift/project
|
||||
|
@ -77,6 +77,24 @@
|
|||
template: configmap.yml
|
||||
objectname: configmap.yml
|
||||
|
||||
- role: openshift/secret-file
|
||||
app: maubot
|
||||
secret_name: maubot-fedora-messaging-key
|
||||
key: maubot.key
|
||||
privatefile: "rabbitmq/{{env}}/pki/private/maubot{{env_suffix}}.key"
|
||||
|
||||
- role: openshift/secret-file
|
||||
app: maubot
|
||||
secret_name: maubot-fedora-messaging-crt
|
||||
key: maubot.crt
|
||||
privatefile: "rabbitmq/{{env}}/pki/issued/maubot{{env_suffix}}.crt"
|
||||
|
||||
- role: openshift/secret-file
|
||||
app: maubot
|
||||
secret_name: maubot-fedora-messaging-ca
|
||||
key: maubot.ca
|
||||
privatefile: "rabbitmq/{{env}}/pki/ca.crt"
|
||||
|
||||
- role: openshift/start-build
|
||||
app: maubot
|
||||
buildname: maubot-build
|
||||
|
|
|
@ -36,6 +36,9 @@ spec:
|
|||
- name: keytab-volume
|
||||
mountPath: /etc/keytabs
|
||||
readOnly: true
|
||||
- name: fedora-messaging-config-volume
|
||||
mountPath: /etc/fedora-messaging/
|
||||
readOnly: true
|
||||
readinessProbe:
|
||||
timeoutSeconds: 1
|
||||
initialDelaySeconds: 5
|
||||
|
@ -64,6 +67,9 @@ spec:
|
|||
- name: keytab-volume
|
||||
secret:
|
||||
secretName: maubot-keytab
|
||||
- name: fedora-messaging-config-volume
|
||||
configMap:
|
||||
name: fedora-messaging-configmap
|
||||
triggers:
|
||||
- type: ImageChange
|
||||
imageChangeParams:
|
||||
|
|
|
@ -13,3 +13,13 @@ items:
|
|||
data:
|
||||
config.yml: |-
|
||||
{{ load_file('config.yml') | indent(6) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: fedora-messaging-configmap
|
||||
labels:
|
||||
app: maubot
|
||||
data:
|
||||
config.toml: |-
|
||||
{{ load_file('config.toml') | indent }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue