90 lines
2.5 KiB
YAML
90 lines
2.5 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/user
|
|
user_name: "fedocal{{ env_suffix }}"
|
|
user_sent_topics: ^org\.fedoraproject\.{{ env_short }}\.fedocal\..*
|
|
|
|
- role: openshift/project
|
|
project_app: fedocal
|
|
project_description: Fedora calendar apps
|
|
project_appowners:
|
|
- kevin
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_template: imagestream.yml.j2
|
|
object_objectname: imagestream.yml
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_template: buildconfig.yml.j2
|
|
object_objectname: buildconfig.yml
|
|
|
|
- role: openshift/secret-file
|
|
secret_file_app: fedocal
|
|
secret_file_secret_name: fedocal-fedora-messaging-key
|
|
secret_file_key: fedocal.key
|
|
secret_file_privatefile: "rabbitmq/{{env}}/pki/private/fedocal{{env_suffix}}.key"
|
|
|
|
- role: openshift/secret-file
|
|
secret_file_app: fedocal
|
|
secret_file_secret_name: fedocal-fedora-messaging-crt
|
|
secret_file_key: fedocal.crt
|
|
secret_file_privatefile: "rabbitmq/{{env}}/pki/issued/fedocal{{env_suffix}}.crt"
|
|
|
|
- role: openshift/secret-file
|
|
secret_file_app: fedocal
|
|
secret_file_secret_name: fedocal-fedora-messaging-ca
|
|
secret_file_key: fedocal.ca
|
|
secret_file_privatefile: "rabbitmq/{{env}}/ca-combined.crt"
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_template: secret.yml.j2
|
|
object_objectname: secret.yml
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_template: configmap.yml.j2
|
|
object_objectname: configmap.yml
|
|
|
|
- role: openshift/start-build
|
|
start_build_app: fedocal
|
|
start_build_buildname: fedocal-build
|
|
start_build_objectname: fedocal-build
|
|
tags:
|
|
- never
|
|
- build
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_file: service.yml
|
|
object_objectname: service.yml
|
|
|
|
- role: openshift/route
|
|
route_app: fedocal
|
|
route_name: fedocal
|
|
route_host: "calendar{{ env_suffix }}.fedoraproject.org"
|
|
route_serviceport: 8080-tcp
|
|
route_servicename: fedocal
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_file: deploymentconfig.yml
|
|
object_objectname: deploymentconfig.yml
|
|
|
|
- role: openshift/object
|
|
object_app: fedocal
|
|
object_file: cron.yml
|
|
object_objectname: cron.yml
|
|
when: env != 'staging'
|