| |
@@ -0,0 +1,57 @@
|
| |
+ - name: make the app be real
|
| |
+ hosts: 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: debuginfod
|
| |
+ description: Fedora debuginfod server
|
| |
+ appowners:
|
| |
+ - fche
|
| |
+ - amerey
|
| |
+ - pingou
|
| |
+ tags:
|
| |
+ - apply-appowners
|
| |
+
|
| |
+ - role: openshift/object
|
| |
+ app: debuginfod
|
| |
+ file: buildconfig.yml
|
| |
+ objectname: buildconfig.yml
|
| |
+
|
| |
+ - role: openshift/object
|
| |
+ app: debuginfod
|
| |
+ file: imagestream.yml
|
| |
+ objectname: imagestream.yml
|
| |
+
|
| |
+ - role: openshift/object
|
| |
+ app: debuginfod
|
| |
+ file: service.yml
|
| |
+ objectname: service.yml
|
| |
+
|
| |
+ - role: openshift/object
|
| |
+ app: debuginfod
|
| |
+ template: storage.yml
|
| |
+ objectname: storage.yml
|
| |
+
|
| |
+ - role: openshift/route
|
| |
+ app: debuginfod
|
| |
+ routename: debuginfod
|
| |
+ host: "debuginfod{{ env_suffix }}.fedoraproject.org"
|
| |
+ serviceport: 8002-tcp
|
| |
+ servicename: debuginfod
|
| |
+
|
| |
+ - role: openshift/start-build
|
| |
+ app: debuginfod
|
| |
+ buildname: debuginfod-build
|
| |
+ objectname: debuginfod-build
|
| |
+
|
| |
+ - role: openshift/object
|
| |
+ app: debuginfod
|
| |
+ template: deploymentconfig.yml
|
| |
+ objectname: deploymentconfig.yml
|
| |
Just an FYI, you can also have the dockerfile outside of the yaml file if you like.
We use this macro to do it: https://pagure.io/fedora-infra/ansible/blob/499b6397b23a49ff4eb3484b7657b154a41c7f23/f/roles/openshift-apps/fedocal/templates/configmap.yml#_8