[apt-mirror] Gardening
parent
1171932884
commit
df3950766b
|
@ -41,9 +41,10 @@ glob_rsync_mirror:
|
||||||
dest: distributions/linux/debian/cloud
|
dest: distributions/linux/debian/cloud
|
||||||
cron_time: "00 5"
|
cron_time: "00 5"
|
||||||
rsync_host: cdimage.debian.org
|
rsync_host: cdimage.debian.org
|
||||||
rsync_path: cdimage/cloud/OpenStack
|
rsync_path: cdimage/cloud/bullseye
|
||||||
exclude:
|
exclude:
|
||||||
- archive
|
- archive
|
||||||
|
- daily
|
||||||
- name: ubuntu
|
- name: ubuntu
|
||||||
dest: distributions/linux/ubuntu
|
dest: distributions/linux/ubuntu
|
||||||
cron_time: "00 5"
|
cron_time: "00 5"
|
||||||
|
@ -72,7 +73,7 @@ glob_rsync_mirror:
|
||||||
- name: archlinux
|
- name: archlinux
|
||||||
dest: archlinux
|
dest: archlinux
|
||||||
cron_time: "08 3,15"
|
cron_time: "08 3,15"
|
||||||
rsync_host: archlinux.polymorf.fr
|
rsync_host: rsync.cyberbits.eu
|
||||||
rsync_path: archlinux/
|
rsync_path: archlinux/
|
||||||
|
|
||||||
glob_apt_mirror:
|
glob_apt_mirror:
|
||||||
|
@ -89,7 +90,7 @@ glob_apt_mirror:
|
||||||
- main
|
- main
|
||||||
- name: proxmox
|
- name: proxmox
|
||||||
symlink: ""
|
symlink: ""
|
||||||
scheme: http
|
scheme: https
|
||||||
host: download.proxmox.com
|
host: download.proxmox.com
|
||||||
path: debian/pve
|
path: debian/pve
|
||||||
suite:
|
suite:
|
||||||
|
@ -97,3 +98,20 @@ glob_apt_mirror:
|
||||||
- bullseye
|
- bullseye
|
||||||
components:
|
components:
|
||||||
- pve-no-subscription
|
- pve-no-subscription
|
||||||
|
- name: ceph-quincy
|
||||||
|
scheme: https
|
||||||
|
host: download.proxmox.com
|
||||||
|
path: debian/ceph-quincy
|
||||||
|
suite:
|
||||||
|
- bullseye
|
||||||
|
components:
|
||||||
|
- main
|
||||||
|
- name: ceph-quincy
|
||||||
|
symlink: ""
|
||||||
|
scheme: https
|
||||||
|
host: download.ceph.com
|
||||||
|
path: debian-quincy
|
||||||
|
suite:
|
||||||
|
- bullseye
|
||||||
|
components:
|
||||||
|
- main
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
state: link
|
state: link
|
||||||
loop: "{{ apt_mirror.targets }}"
|
loop: "{{ apt_mirror.targets }}"
|
||||||
|
when: item.symlink is defined
|
||||||
|
|
||||||
- name: Copy apt-mirror configurations
|
- name: Copy apt-mirror configurations
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{ ansible_header | comment }}
|
{{ ansible_header | comment }}
|
||||||
{% for i in rsync_mirror.targets %}
|
{% for i in rsync_mirror.targets %}
|
||||||
{{ i.cron_time }} * * * mirror rsync --times --links --hard-links --partial --block-size=8192 --recursive --exclude *-dvd-* --exclude source/ --verbose --stats --delete-after {%for exclude in i.exclude | default([]) %}--exclude {{ exclude }} {% endfor %}rsync://{{ i.rsync_host }}/{{ i.rsync_path }} {{ rsync_mirror.root }}/{{ i.dest }} | tee -a "/var/log/mirror/{{ i.name }}.log" > /dev/null
|
{{ i.cron_time }} * * * mirror rsync --times --links --hard-links --partial --block-size=8192 --recursive --exclude *-dvd-* --exclude *.raw --exclude source/ --verbose --stats --delete-after {%for exclude in i.exclude | default([]) %}--exclude {{ exclude }} {% endfor %}rsync://{{ i.rsync_host }}/{{ i.rsync_path }} {{ rsync_mirror.root }}/{{ i.dest }} | tee -a "/var/log/mirror/{{ i.name }}.log" > /dev/null
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue