Initial stab at regindexer for staging.
This commit is contained in:
parent
12c44c2703
commit
0bff76554c
4 changed files with 61 additions and 0 deletions
|
@ -1 +1,2 @@
|
|||
30 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::registry-index/ /srv/web/registry-index/
|
||||
40 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::regindexer/ /srv/web/registry-index/index/
|
||||
|
|
16
roles/regindexer/build/tasks/main.yml
Normal file
16
roles/regindexer/build/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: install needed packages
|
||||
package: name=regindexer state=installed
|
||||
tags:
|
||||
- packages
|
||||
- regindexer
|
||||
|
||||
- name: Install config.yaml file
|
||||
template: source=config.yaml dest=/etc/regindexer/config.yaml
|
||||
tags:
|
||||
- regindexer
|
||||
|
||||
- name: enable service
|
||||
service: name=regindexer state=started enabled=true
|
||||
tags:
|
||||
- regindexer
|
36
roles/regindexer/build/templates/config.yaml
Normal file
36
roles/regindexer/build/templates/config.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
icons_dir: /var/lib/regindexer/icons/
|
||||
icons_uri: /app-icons/
|
||||
indexes:
|
||||
flatpak:
|
||||
output: /var/lib/regindexer/index/flatpak.json
|
||||
registry: http://registry{{ env_suffix }}.fedoraproject.org:5000
|
||||
registry_public: /
|
||||
tags: ['latest']
|
||||
required_annotations: ['org.flatpak.ref']
|
||||
extract_icons: True
|
||||
flatpak_testing:
|
||||
output: /var/lib/regindexer/index/flatpak-testing.json
|
||||
registry: https://registry{{ env_suffix }}.fedoraproject.org
|
||||
registry_public: /
|
||||
tags: ['testing']
|
||||
required_annotations: ['org.flatpak.ref']
|
||||
extract_icons: True
|
||||
flatpak_amd64:
|
||||
output: /var/lib/regindexer/index/flatpak-amd64.json
|
||||
registry: https://registry{{ env_suffix }}.fedoraproject.org
|
||||
registry_public: /
|
||||
tags: [‘latest’]
|
||||
required_annotations: ['org.flatpak.ref']
|
||||
architectures: ['amd64']
|
||||
extract_icons: True
|
||||
flatpak_testing_amd64:
|
||||
output: /var/lib/regindexer/index/flatpak-testing-amd64.json
|
||||
registry: https://registry{{ env_suffix }}.fedoraproject.org
|
||||
registry_public: /
|
||||
tags: [‘testing’]
|
||||
required_annotations: ['org.flatpak.ref']
|
||||
architectures: ['amd64']
|
||||
extract_icons: True
|
||||
daemon:
|
||||
topic_prefix: org.fedoraproject
|
||||
environment: {stg/prod}
|
|
@ -214,6 +214,14 @@ gid = root
|
|||
read only = yes
|
||||
hosts allow = 10.5.126.0/255.255.255.0 192.168.0.0/255.255.0.0 10.5.128.0/255.255.255.0
|
||||
|
||||
[regindexer]
|
||||
comment = regindexer
|
||||
path = /var/lib/regindexer/
|
||||
uid = root
|
||||
gid = root
|
||||
read only = yes
|
||||
hosts allow = 10.5.126.0/255.255.255.0 192.168.0.0/255.255.0.0 10.5.128.0/255.255.255.0
|
||||
|
||||
[docs-redirects]
|
||||
comment = Docs Site Redirects
|
||||
path = /srv/web/docs-redirects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue