ansible/playbooks/openshift-apps/fpdc.yml
Clement Verna 454f119325 FPDC: use the openshift/imagestream role in the playbook
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:09 +02:00

62 lines
1.4 KiB
YAML

- name: make the app be real
hosts: os_masters[0]:os_masters_stg[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: openshift/project
app: fpdc
description: Fedora Product Definition Center
appowners:
- cverna
- abompard
- role: openshift/imagestream
app: fpdc
imagename: fpdc
- role: openshift/object
app: fpdc
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/object
app: fpdc
template: configmap.yml
objectname: configmap.yml
- role: openshift/start-build
app: fpdc
buildname: fpdc-build
objectname: fpdc-build
- role: openshift/object
app: fpdc
file: service.yml
objectname: service.yml
- role: openshift/route
app: fpdc
routename: fpdc
host: "fpdc{{ env_suffix }}.fedoraproject.org"
serviceport: 8080-tcp
servicename: fpdc
- role: openshift/object
app: fpdc
file: deploymentconfig.yml
objectname: deploymentconfig.yml
###############################################
# actions to delete the project from OpenShift
###############################################
# to run: sudo rbac-playbook -l staging -t delete openshift-apps/fpdc.yml
- role: openshift/object-delete
app: fpdc
objecttype: project
objectname: fpdc
tags: [ never, delete ]