mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
74 lines
2.0 KiB
YAML
74 lines
2.0 KiB
YAML
---
|
|
- name: Make the app be real
|
|
hosts: os_control_stg:os_control
|
|
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
|
|
|
|
vars:
|
|
|
|
roles:
|
|
- role: openshift/project
|
|
project_app: flask-oidc-dev
|
|
project_description: "Authentication testing"
|
|
project_appowners:
|
|
- abompard
|
|
- dkirwan
|
|
- jamricha
|
|
- sidharthvipul
|
|
tags:
|
|
- apply-appowners
|
|
|
|
- role: openshift/imagestream
|
|
imagestream_app: flask-oidc-dev
|
|
imagestream_imagename: flask-oidc-dev
|
|
|
|
- role: openshift/object
|
|
object_app: flask-oidc-dev
|
|
object_template: buildconfig.yml.j2
|
|
object_objectname: buildconfig.yml
|
|
|
|
- role: openshift/object
|
|
object_app: flask-oidc-dev
|
|
object_template: configmap.yml.j2
|
|
object_objectname: configmap.yml
|
|
|
|
- role: openshift/object
|
|
object_app: flask-oidc-dev
|
|
object_file: service.yml
|
|
object_objectname: service.yml
|
|
|
|
# - role: openshift/route
|
|
# route_app: test-auth
|
|
# route_name: test-auth
|
|
# route_host: "admin{{ env_suffix }}.fedoraproject.org"
|
|
# route_path: "/test-auth"
|
|
# route_serviceport: web
|
|
# route_servicename: test-auth
|
|
# route_annotations:
|
|
# haproxy.router.openshift.io/timeout: 5m
|
|
|
|
- role: openshift/route
|
|
route_app: flask-oidc-dev
|
|
route_name: flask-oidc-dev
|
|
route_host: "app-flask-oidc-dev.apps.ocp{{ env_suffix }}.fedoraproject.org"
|
|
route_serviceport: web
|
|
route_servicename: flask-oidc-dev
|
|
route_annotations:
|
|
haproxy.router.openshift.io/timeout: 5m
|
|
when: ocp4
|
|
|
|
- role: openshift/object
|
|
object_app: flask-oidc-dev
|
|
object_template: secret-webhook.yml.j2
|
|
object_objectname: secret-webhook.yml
|
|
|
|
- role: openshift/object
|
|
object_app: flask-oidc-dev
|
|
object_template: deploymentconfig.yml.j2
|
|
object_objectname: deploymentconfig.yml
|