blob: 653a21db719c0accb359cb1e856133c2841f8ff3 [file] [log] [blame]
=====
Usage
=====
This file provides the debmirror sample pillars configurations for different
use cases.
See debmirror/schemas/*.yaml for all possible options
A sample of one debmirror mirror configuration (Ubuntu):
.. code-block:: yaml
parameters:
debmirror:
client:
enabled: true
mirrors:
target01:
enabled: true
fetch_retry: 3
http_proxy : "url"
https_proxy: "url"
ftp_proxy: "url"
rsync_proxy: "url"
no_proxy: ['val1', 'val2']
force: False
lock_target: True
extra_flags: [ '--verbose', '--progress', '--nosource', '--no-check-gpg', '--rsync-extra=none' ]
method: "rsync" # string
arch: [ 'amd64' ]
mirror_host: "mirror.mirantis.com" # rsync
mirror_root: ':mirror/nightly/ubuntu/'
cache_dir: "/var/www/mirror/.cache/ubuntu"
target_dir: "/var/www/mirror/ubuntu/"
log_file: "/var/www/mirror/target01_log.log"
dist: [ xenial ] #, xenial-security, xenial-updates ]
section: [ main ] #, multiverse, restricted, universe ]
exclude_deb_section: [ 'games', gnome, Xfce, sound, electronics, graphics, hamradio , doc, localization, kde, video ]
filter:
00: "--exclude=/"
01: "--exclude='/android*'"
02: "--exclude='/firefox*'"
03: "--exclude='/chromium-browser*'"
04: "--exclude='/ceph*'"
05: "--exclude='/*-wallpapers*'"
06: "--exclude='/language-pack-(?!en)'"
07: "--include='/main(.*)manpages'"
08: "--include='/main(.*)python-(.*)doc'"
09: "--include='/main(.*)python-(.*)network'"
Parameter cache_dir is optional and can be used to avoid extra disk space
usage for repos, which can have same packages, by using hardlinks to files.