mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
---
|
|
- name: Make the app be real
|
|
hosts: os_control[0]:os_control_stg[0]
|
|
user: root
|
|
gather_facts: false
|
|
vars:
|
|
ssh_key_path: "{{ private }}/files/websites/id_rsa_web_trans_{{ env_short }}"
|
|
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
|
|
project_app: websites
|
|
project_description: Fedora websites building
|
|
project_alerting: true
|
|
project_appowners:
|
|
- ryanlerch
|
|
- darknao
|
|
- kevin
|
|
- glb
|
|
|
|
# legacy websites
|
|
- role: openshift/object
|
|
object_app: websites
|
|
object_file: pvc.yml
|
|
object_objectname: pvc.yml
|
|
|
|
- role: openshift/imagestream
|
|
imagestream_app: websites
|
|
imagestream_imagename: fedora-websites
|
|
|
|
- role: openshift/object
|
|
object_app: websites
|
|
object_template: fedora-websites-bc.yml.j2
|
|
object_objectname: fedora-websites-bc.yml
|
|
|
|
- role: openshift/start-build
|
|
start_build_app: websites
|
|
start_build_buildname: fedora-websites
|
|
start_build_objectname: fedora-websites
|
|
tags:
|
|
- never
|
|
- build
|
|
|
|
- role: openshift/object
|
|
object_app: websites
|
|
object_template: fedora-websites-cron.yml.j2
|
|
object_objectname: fedora-websites-cron.yml
|
|
|
|
# New websites 3.0
|
|
- role: openshift/imagestream
|
|
imagestream_app: websites
|
|
imagestream_imagename: builder
|
|
|
|
- role: openshift/object
|
|
object_app: websites
|
|
object_template: buildconfig.yml.j2
|
|
object_objectname: buildconfig.yml
|
|
|
|
- role: openshift/start-build
|
|
start_build_app: websites
|
|
start_build_buildname: websites-build
|
|
start_build_objectname: websites-build
|
|
|
|
- role: openshift/object
|
|
object_app: websites
|
|
object_file: obc.yml
|
|
object_objectname: obc.yml
|
|
|
|
- role: openshift/object
|
|
object_app: websites
|
|
object_template: deployment.yml.j2
|
|
object_objectname: deployment.yml
|