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:
|
roles:
|
||||||
- role: rabbit/user
|
- role: rabbit/user
|
||||||
username: "zodbot-{{ env_short }}"
|
username: "maubot{{ env_suffix }}"
|
||||||
sent_topics: ^org\.fedoraproject\.{{ env_short }}\.meetbot\..*
|
sent_topics: ^org\.fedoraproject\.{{ env_short }}\.meetbot\..*
|
||||||
|
|
||||||
- role: openshift/project
|
- role: openshift/project
|
||||||
|
@ -77,6 +77,24 @@
|
||||||
template: configmap.yml
|
template: configmap.yml
|
||||||
objectname: 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
|
- role: openshift/start-build
|
||||||
app: maubot
|
app: maubot
|
||||||
buildname: maubot-build
|
buildname: maubot-build
|
||||||
|
|
|
@ -36,6 +36,9 @@ spec:
|
||||||
- name: keytab-volume
|
- name: keytab-volume
|
||||||
mountPath: /etc/keytabs
|
mountPath: /etc/keytabs
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: fedora-messaging-config-volume
|
||||||
|
mountPath: /etc/fedora-messaging/
|
||||||
|
readOnly: true
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
@ -64,6 +67,9 @@ spec:
|
||||||
- name: keytab-volume
|
- name: keytab-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: maubot-keytab
|
secretName: maubot-keytab
|
||||||
|
- name: fedora-messaging-config-volume
|
||||||
|
configMap:
|
||||||
|
name: fedora-messaging-configmap
|
||||||
triggers:
|
triggers:
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
imageChangeParams:
|
imageChangeParams:
|
||||||
|
|
|
@ -13,3 +13,13 @@ items:
|
||||||
data:
|
data:
|
||||||
config.yml: |-
|
config.yml: |-
|
||||||
{{ load_file('config.yml') | indent(6) }}
|
{{ 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