Actually, they're all identical. Let's create one and symlink the world

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2019-01-21 17:16:14 +01:00
parent 61d99be510
commit 7ca28a0969
2 changed files with 19 additions and 26 deletions

View file

@ -1,9 +1,2 @@
MAILTO=""
*/15 * * * * root /usr/bin/curl https://kojipkgs.fedoraproject.org/atomic/repo/summary -o /srv/web/ostree/atomichost/summary
MAILTO=""
*/15 * * * * root /usr/bin/curl https://kojipkgs.fedoraproject.org/atomic/repo/summary -o /srv/web/ostree/coreos/summary
MAILTO=""
*/15 * * * * root /usr/bin/curl https://kojipkgs.fedoraproject.org/atomic/repo/summary -o /srv/web/ostree/silverblue/summary
MAILTO=""
*/15 * * * * root /usr/bin/curl https://kojipkgs.fedoraproject.org/atomic/repo/summary -o /srv/web/ostree/iot/summary
*/15 * * * * root /usr/bin/curl https://kojipkgs.fedoraproject.org/atomic/repo/summary -o /srv/web/ostree_allofthem/summary

View file

@ -18,9 +18,22 @@
- fedora-web
- ostree
- name: make ostree variant dirs
- name: make ostree "allofthem" dir
file: state=directory
path=/srv/web/ostree_allofthem
owner=apache
group=sysadmin-releng
mode=2775
setype=httpd_sys_content_t
seuser=system_u
tags:
- fedora-web
- ostree
- name: make ostree variant dir symlinks
file: state=link
path=/srv/web/ostree/{{ item }}
dest=/srv/web/ostree_allofthem
owner=apache
group=sysadmin-releng
mode=2775
@ -35,24 +48,11 @@
- fedora-web
- ostree
- name: Copy over the mirrorlist file
copy: src=mirrorlist dest=/srv/web/ostree/{{item}}/mirrorlist mode=0644
- name: Copy over the static files
copy: src=item dest=/srv/web/ostree_allofthem/{{item}} mode=0644
with_items:
- atomichost
- coreos
- silverblue
- iot
tags:
- fedora-web
- ostree
- name: Copy over the config file
copy: src=config dest=/srv/web/ostree/{{item}}/config mode=0644
with_items:
- atomichost
- coreos
- silverblue
- iot
- config
- mirrorlist
tags:
- fedora-web
- ostree