Prepare ostree.fp.o for proxies
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
7aacc3accf
commit
c9d4f07ae8
4 changed files with 36 additions and 0 deletions
|
@ -44,6 +44,8 @@
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
- role: fedora-web/registry
|
- role: fedora-web/registry
|
||||||
website: registry.fedoraproject.org
|
website: registry.fedoraproject.org
|
||||||
|
- role: fedora-web/ostree
|
||||||
|
website: ostree.fedoraproject.org
|
||||||
- role: fedora-web/candidate-registry
|
- role: fedora-web/candidate-registry
|
||||||
website: candidate-registry.fedoraproject.org
|
website: candidate-registry.fedoraproject.org
|
||||||
- role: fedora-web/codecs
|
- role: fedora-web/codecs
|
||||||
|
|
|
@ -285,6 +285,12 @@
|
||||||
tags: caiapi
|
tags: caiapi
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
|
- role: httpd/website
|
||||||
|
site_name: ostree.fedoraproject.org
|
||||||
|
sslonly: true
|
||||||
|
cert_name: "{{wildcard_cert_name}}"
|
||||||
|
tags: ostree
|
||||||
|
|
||||||
- role: httpd/website
|
- role: httpd/website
|
||||||
site_name: hubs.fedoraproject.org
|
site_name: hubs.fedoraproject.org
|
||||||
sslonly: true
|
sslonly: true
|
||||||
|
|
2
roles/fedora-web/ostree/files/cron-sync-ostree-summary
Normal file
2
roles/fedora-web/ostree/files/cron-sync-ostree-summary
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# * * * * * root /usr/bin/rsync -a --no-owner --no-group sundries01::registry-index/ /srv/web/registry-index/
|
||||||
|
|
26
roles/fedora-web/ostree/tasks/main.yml
Normal file
26
roles/fedora-web/ostree/tasks/main.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
- name: make ostree dir
|
||||||
|
file: state=directory
|
||||||
|
path=/srv/web/ostree
|
||||||
|
owner=apache
|
||||||
|
group=sysadmin-releng
|
||||||
|
mode=2775
|
||||||
|
setype=httpd_sys_content_t
|
||||||
|
seuser=system_u
|
||||||
|
tags:
|
||||||
|
- fedora-web
|
||||||
|
- ostree
|
||||||
|
|
||||||
|
- name: Copy over the static files
|
||||||
|
copy: src={{item}} dest=/srv/web/ostree/{{item}} mode=0644
|
||||||
|
with_items:
|
||||||
|
- mirrorlist
|
||||||
|
- config
|
||||||
|
tags:
|
||||||
|
- fedora-web
|
||||||
|
- ostree
|
||||||
|
|
||||||
|
- name: Copy in the sync-summary cron job
|
||||||
|
copy: src=cron-sync-ostree-summary dest=/etc/cron.d/sync-ostree-summary
|
||||||
|
tags:
|
||||||
|
- fedora-web
|
||||||
|
- ostree
|
Loading…
Add table
Add a link
Reference in a new issue