2019-05-24 09:01:25 +00:00
|
|
|
- name: provision CoreOS Cincinnati backend
|
2022-05-17 08:34:16 +00:00
|
|
|
hosts: os_control:os_control_stg
|
2019-05-24 09:01:25 +00:00
|
|
|
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
|
2019-06-17 13:13:52 +00:00
|
|
|
- /srv/web/infra/ansible/roles/openshift-apps/coreos-cincinnati/vars/{{ env }}.yml
|
2019-05-24 09:01:25 +00:00
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: openshift/project
|
|
|
|
app: coreos-cincinnati
|
|
|
|
description: Fedora CoreOS Cincinnati backend
|
|
|
|
appowners:
|
|
|
|
- jlebon
|
|
|
|
- lucab
|
2019-09-09 11:24:34 -04:00
|
|
|
- dustymabe
|
2019-06-20 09:55:24 +02:00
|
|
|
egress_policy_template: "{{ roles_path }}/openshift-apps/coreos-cincinnati/templates/egresspolicy.yml"
|
2019-05-24 09:01:25 +00:00
|
|
|
|
|
|
|
- role: openshift/imagestream
|
|
|
|
app: coreos-cincinnati
|
|
|
|
imagename: fedora-coreos-cincinnati
|
|
|
|
|
|
|
|
- role: openshift/object
|
|
|
|
app: coreos-cincinnati
|
2019-06-17 13:16:44 +00:00
|
|
|
template: buildconfig-stub.yml
|
2019-05-24 09:01:25 +00:00
|
|
|
objectname: buildconfig-stub.yml
|
2019-06-18 11:44:50 +00:00
|
|
|
|
2021-09-10 08:20:51 +00:00
|
|
|
- role: openshift/start-build
|
|
|
|
app: coreos-cincinnati
|
2022-05-17 08:36:40 +00:00
|
|
|
buildname: coreos-cincinnati
|
2021-09-10 08:20:51 +00:00
|
|
|
tags: [ never, build ]
|
|
|
|
|
2019-05-24 09:01:25 +00:00
|
|
|
- role: openshift/object
|
|
|
|
app: coreos-cincinnati
|
|
|
|
file: config-stub.yml
|
|
|
|
objectname: config-stub.yml
|
|
|
|
|
|
|
|
- role: openshift/object
|
|
|
|
app: coreos-cincinnati
|
2019-06-17 13:35:35 +00:00
|
|
|
template: deploymentconfig.yml
|
2019-05-24 09:01:25 +00:00
|
|
|
objectname: deploymentconfig.yml
|
|
|
|
|
2019-06-20 16:53:12 +00:00
|
|
|
- role: openshift/rollout
|
|
|
|
app: coreos-cincinnati
|
2022-05-17 09:02:51 +00:00
|
|
|
dcname: coreos-cincinnati
|
2019-06-20 16:53:12 +00:00
|
|
|
tags: [ never, rollout ]
|
|
|
|
|
2019-05-24 09:01:25 +00:00
|
|
|
- role: openshift/object
|
|
|
|
app: coreos-cincinnati
|
|
|
|
file: service.yml
|
|
|
|
objectname: service.yml
|
|
|
|
|
2022-05-18 07:27:57 +00:00
|
|
|
- role: openshift/object
|
|
|
|
app: coreos-cincinnati
|
2022-05-18 07:33:46 +00:00
|
|
|
template: servicemonitor.yml
|
2022-05-18 07:27:57 +00:00
|
|
|
objectname: servicemonitor.yml
|
|
|
|
|
2019-05-24 09:01:25 +00:00
|
|
|
- role: openshift/route
|
|
|
|
app: coreos-cincinnati
|
|
|
|
routename: coreos-updates
|
2019-06-20 17:31:15 +02:00
|
|
|
host: "updates.coreos{{ env_suffix }}.fedoraproject.org"
|
2020-08-10 09:15:49 +00:00
|
|
|
serviceport: coreos-cincinnati-updates
|
2019-05-24 09:01:25 +00:00
|
|
|
servicename: coreos-cincinnati
|
2019-08-02 07:45:57 +00:00
|
|
|
|
|
|
|
- role: openshift/route
|
|
|
|
app: coreos-cincinnati
|
|
|
|
routename: coreos-updates-status
|
|
|
|
host: "status.updates.coreos{{ env_suffix }}.fedoraproject.org"
|
2020-08-10 09:15:49 +00:00
|
|
|
serviceport: coreos-cincinnati-updates-status
|
2019-08-02 07:45:57 +00:00
|
|
|
servicename: coreos-cincinnati
|
|
|
|
|
|
|
|
- role: openshift/route
|
|
|
|
app: coreos-cincinnati
|
|
|
|
routename: coreos-updates-raw
|
|
|
|
host: "raw-updates.coreos{{ env_suffix }}.fedoraproject.org"
|
2020-08-03 10:10:56 +00:00
|
|
|
serviceport: coreos-cincinnati-raw-updates
|
2019-08-02 07:45:57 +00:00
|
|
|
servicename: coreos-cincinnati
|
|
|
|
|
|
|
|
- role: openshift/route
|
|
|
|
app: coreos-cincinnati
|
|
|
|
routename: coreos-updates-raw-status
|
|
|
|
host: "status.raw-updates.coreos{{ env_suffix }}.fedoraproject.org"
|
2020-08-03 10:10:56 +00:00
|
|
|
serviceport: coreos-cincinnati-raw-updates-status
|
2019-08-02 07:45:57 +00:00
|
|
|
servicename: coreos-cincinnati
|
2019-09-10 09:40:17 -04:00
|
|
|
|
|
|
|
###############################################
|
|
|
|
# actions to delete the project from OpenShift
|
|
|
|
###############################################
|
|
|
|
# to run: sudo rbac-playbook -l os_masters_stg[0] -t delete openshift-apps/coreos-cincinnati.yml
|
|
|
|
- role: openshift/object-delete
|
|
|
|
app: coreos-cincinnati
|
|
|
|
objecttype: project
|
|
|
|
objectname: coreos-cincinnati
|
|
|
|
tags: [ never, delete ]
|