ansible/playbooks/openshift-apps/elections.yml
Kevin Fenzi b0be62b8d2 iad2-move: move some openshift apps
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-08 14:57:17 -07:00

83 lines
2 KiB
YAML

- name: make the app be real
hosts: os_masters_stg[0]:os_masters[0]:os-master01.iad2.fedoraproject.org
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/user
username: "elections{{ env_suffix }}"
- role: openshift/project
app: elections
description: Fedora Elections apps
appowners:
- cverna
- pingou
- bcotton
tags:
- appowners
- role: openshift/object
app: elections
template: imagestream.yml
objectname: imagestream.yml
- role: openshift/object
app: elections
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/secret-file
app: elections
secret_name: elections-fedora-messaging-key
key: elections.key
privatefile: "rabbitmq/{{env}}/pki/private/elections{{env_suffix}}.key"
- role: openshift/secret-file
app: elections
secret_name: elections-fedora-messaging-crt
key: elections.crt
privatefile: "rabbitmq/{{env}}/pki/issued/elections{{env_suffix}}.crt"
- role: openshift/secret-file
app: elections
secret_name: elections-fedora-messaging-ca
key: elections.ca
privatefile: "rabbitmq/{{env}}/pki/ca.crt"
- role: openshift/object
app: elections
template: secret.yml
objectname: secret.yml
- role: openshift/object
app: elections
template: configmap.yml
objectname: configmap.yml
- role: openshift/start-build
app: elections
buildname: elections-build
objectname: elections-build
- role: openshift/object
app: elections
file: service.yml
objectname: service.yml
- role: openshift/route
app: elections
routename: elections
host: "elections{{ env_suffix }}.fedoraproject.org"
serviceport: 8080-tcp
servicename: elections
- role: openshift/object
app: elections
file: deploymentconfig.yml
objectname: deploymentconfig.yml