ansible/playbooks/openshift-apps/flatpak-indexer.yml
Owen W. Taylor 69e318a10a Add a flatpak-indexer openshift service
flatpak-indexer replaces regindexer for creating an index of Fedora
Flatpaks. It adds an additional capability - creating "diffs" between image versions
allowing for incremental updates.

Add a new openshift namespace: flatpak-indexer, with three deploymentconfigs
in it:

 - flatpak-indexer: generates the index
 - flatpak-indexer-differ: worker(s) to run the expensive tardiff operation
 - redis: used for cache and communication between indexer and differ

The staging version of the indexer targets the *production* bodhi/koji/registry,
since we don't have useful Flatpak content in staging. This could be changed.

The registry reverse proxy configuration is updated to a slightly different
set of generated indexes (the 'annotations' indexes for F31 and older are
now suffixed with -annotations, and the 'labels' indexes unsuffixed.)

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
2021-02-05 21:19:30 +00:00

57 lines
1.4 KiB
YAML

- 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
- /srv/web/infra/ansible/roles/openshift-apps/flatpak-indexer/vars/{{ env }}.yml
roles:
- role: openshift/project
app: flatpak-indexer
description: Fedora Flatpak Indexer apps
appowners:
- otaylor
- role: openshift/object
app: flatpak-indexer
template: secret.yml
objectname: secret.yml
- role: openshift/object
app: flatpak-indexer
file: imagestream.yml
objectname: imagestream.yml
- role: openshift/object
app: flatpak-indexer
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/object
app: flatpak-indexer
file: storage.yml
objectname: storage.yml
- role: openshift/object
app: flatpak-indexer
template: configmap.yml
objectname: configmap.yml
- role: openshift/start-build
app: flatpak-indexer
# This will trigger the main build via a imageChange trigger
buildname: flatpak-indexer-tardiff-build
- role: openshift/object
app: flatpak-indexer
file: service.yml
objectname: service.yml
- role: openshift/object
app: flatpak-indexer
template: deploymentconfig.yml
objectname: deploymentconfig.yml