Before we enable any monitoring, we should clean up app owners some so we do not spam people who arent around anymore and no longer care about the app. ;) If I removed anyone here who is still around and does care, we can easily add you back in. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
81 lines
1.9 KiB
YAML
81 lines
1.9 KiB
YAML
- name: make the app be real
|
|
hosts: os_control_stg[0]:os_control[0]
|
|
user: root
|
|
gather_facts: False
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
roles:
|
|
- role: rabbit/queue
|
|
username: "datanommer{{ env_suffix }}"
|
|
queue_name: "datanommer{{ env_suffix }}"
|
|
routing_keys:
|
|
- "#"
|
|
thresholds:
|
|
warning: 50
|
|
critical: 500
|
|
# Datanommer does not publish messages
|
|
sent_topics: ^$
|
|
|
|
- role: openshift/project
|
|
app: datanommer
|
|
description: "Fedora messaging consumer"
|
|
appowners:
|
|
- abompard
|
|
- ryanlerch
|
|
- james02135
|
|
- lenkaseg
|
|
tags:
|
|
- apply-appowners
|
|
when: env == "production"
|
|
|
|
- role: openshift/project
|
|
app: datanommer
|
|
description: "Fedora messaging consumer"
|
|
appowners:
|
|
- abompard
|
|
- ryanlerch
|
|
- james02135
|
|
- lenkaseg
|
|
tags:
|
|
- apply-appowners
|
|
when: env == "staging"
|
|
|
|
- role: openshift/secret-file
|
|
app: datanommer
|
|
secret_name: fedora-messaging-ca
|
|
key: cacert.pem
|
|
privatefile: "rabbitmq/{{env}}/pki/ca.crt"
|
|
- role: openshift/secret-file
|
|
app: datanommer
|
|
secret_name: fedora-messaging-crt
|
|
key: datanommer-cert.pem
|
|
privatefile: "rabbitmq/{{env}}/pki/issued/datanommer{{env_suffix}}.crt"
|
|
- role: openshift/secret-file
|
|
app: datanommer
|
|
secret_name: fedora-messaging-key
|
|
key: datanommer-key.pem
|
|
privatefile: "rabbitmq/{{env}}/pki/private/datanommer{{env_suffix}}.key"
|
|
|
|
- role: openshift/object
|
|
app: datanommer
|
|
file: imagestream.yml
|
|
objectname: imagestream.yml
|
|
|
|
- role: openshift/object
|
|
app: datanommer
|
|
template: buildconfig.yml
|
|
objectname: buildconfig.yml
|
|
|
|
- role: openshift/object
|
|
app: datanommer
|
|
template: configmap.yml
|
|
objectname: configmap.yml
|
|
|
|
- role: openshift/object
|
|
app: datanommer
|
|
template: deploymentconfig.yml
|
|
objectname: deploymentconfig.yml
|