add sync-registry-index for fedora-web
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
a00dffea3b
commit
858ae6d57a
3 changed files with 12 additions and 0 deletions
|
@ -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: >
|
||||
|
|
1
roles/fedora-web/registry/files/cron-sync-registry-index
Normal file
1
roles/fedora-web/registry/files/cron-sync-registry-index
Normal file
|
@ -0,0 +1 @@
|
|||
30 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::registry-index/ /srv/web/registry-index/
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue