add sync-registry-index for fedora-web

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2017-06-30 15:16:14 +00:00
parent a00dffea3b
commit 858ae6d57a
3 changed files with 12 additions and 0 deletions

View file

@ -51,6 +51,11 @@
tags:
- fedora-web
- name: make registry-index dir
file: state=directory path=/srv/web/registry-index owner=apache group=sysadmin-releng mode=2775 setype=httpd_sys_content_t seuser=system_u
tags:
- fedora-web
- name: Copy syncStatic script (stg)
when: env == "staging"
copy: >

View file

@ -0,0 +1 @@
30 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::registry-index/ /srv/web/registry-index/

View file

@ -13,6 +13,12 @@
- fedora-web
- fedora-web/registry
- name: Copy in the sync-registry-index cronjob
copy: src=cron-sync-registry-index dest=/etc/cron.d/sync-registry-index
tags:
- fedora-web
- fedora-web/registry
- name: Copy over the registry CA
copy: src="{{private}}/files/docker-registry/{{env}}/docker-registry-ca.pem"
dest="/etc/pki/httpd/registry-ca-{{env}}.cert"