diff --git a/playbooks/include/proxies-fedora-web.yml b/playbooks/include/proxies-fedora-web.yml index 3ef1e22178..9a2cbe467a 100644 --- a/playbooks/include/proxies-fedora-web.yml +++ b/playbooks/include/proxies-fedora-web.yml @@ -44,6 +44,8 @@ when: env == "staging" - role: fedora-web/registry website: registry.fedoraproject.org + - role: fedora-web/ostree + website: ostree.fedoraproject.org - role: fedora-web/candidate-registry website: candidate-registry.fedoraproject.org - role: fedora-web/codecs diff --git a/playbooks/include/proxies-websites.yml b/playbooks/include/proxies-websites.yml index 21f9c32d5f..0de786b4db 100644 --- a/playbooks/include/proxies-websites.yml +++ b/playbooks/include/proxies-websites.yml @@ -285,6 +285,12 @@ tags: caiapi when: env == "staging" + - role: httpd/website + site_name: ostree.fedoraproject.org + sslonly: true + cert_name: "{{wildcard_cert_name}}" + tags: ostree + - role: httpd/website site_name: hubs.fedoraproject.org sslonly: true diff --git a/roles/fedora-web/ostree/files/cron-sync-ostree-summary b/roles/fedora-web/ostree/files/cron-sync-ostree-summary new file mode 100644 index 0000000000..9eb55f8197 --- /dev/null +++ b/roles/fedora-web/ostree/files/cron-sync-ostree-summary @@ -0,0 +1,2 @@ +# * * * * * root /usr/bin/rsync -a --no-owner --no-group sundries01::registry-index/ /srv/web/registry-index/ + diff --git a/roles/fedora-web/ostree/tasks/main.yml b/roles/fedora-web/ostree/tasks/main.yml new file mode 100644 index 0000000000..26a5173837 --- /dev/null +++ b/roles/fedora-web/ostree/tasks/main.yml @@ -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