blob: 715cc89fff71bc758b94153a0571d48f570aec60 [file] [log] [blame]
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +03001=====
2Usage
3=====
azvyagintseve5c4e832018-01-25 20:02:46 +02004
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +03005This file provides the debmirror sample pillars configurations for different
6use cases.
azvyagintseve5c4e832018-01-25 20:02:46 +02007
azvyagintsevb67fd052018-07-24 09:08:28 +02008See debmirror/schemas/*.yaml for all possible options
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +03009A sample of one debmirror mirror configuration (Ubuntu):
azvyagintseve5c4e832018-01-25 20:02:46 +020010
11.. code-block:: yaml
azvyagintsevb80d6222018-02-19 15:53:40 +020012
azvyagintseve5c4e832018-01-25 20:02:46 +020013 parameters:
14 debmirror:
15 client:
16 enabled: true
17 mirrors:
18 target01:
azvyagintsevb67fd052018-07-24 09:08:28 +020019 enabled: true
20 fetch_retry: 3
azvyagintsev73720db2018-06-20 17:28:09 +030021 http_proxy : "url"
22 https_proxy: "url"
23 ftp_proxy: "url"
24 rsync_proxy: "url"
azvyagintseve5c4e832018-01-25 20:02:46 +020025 force: False
26 lock_target: True
27 extra_flags: [ '--verbose', '--progress', '--nosource', '--no-check-gpg', '--rsync-extra=none' ]
28 method: "rsync" # string
29 arch: [ 'amd64' ]
30 mirror_host: "mirror.mirantis.com" # rsync
31 mirror_root: ':mirror/nightly/ubuntu/'
Denis Egorenko87307732018-10-31 17:22:05 +040032 cache_dir: "/var/www/mirror/.cache/ubuntu"
azvyagintseve5c4e832018-01-25 20:02:46 +020033 target_dir: "/var/www/mirror/ubuntu/"
34 log_file: "/var/www/mirror/target01_log.log"
35 dist: [ xenial ] #, xenial-security, xenial-updates ]
36 section: [ main ] #, multiverse, restricted, universe ]
37 exclude_deb_section: [ 'games', gnome, Xfce, sound, electronics, graphics, hamradio , doc, localization, kde, video ]
38 filter:
39 00: "--exclude=/"
40 01: "--exclude='/android*'"
41 02: "--exclude='/firefox*'"
42 03: "--exclude='/chromium-browser*'"
43 04: "--exclude='/ceph*'"
44 05: "--exclude='/*-wallpapers*'"
45 06: "--exclude='/language-pack-(?!en)'"
46 07: "--include='/main(.*)manpages'"
47 08: "--include='/main(.*)python-(.*)doc'"
48 09: "--include='/main(.*)python-(.*)network'"
49
Denis Egorenkoa0366fe2019-09-20 14:15:54 +040050Parameter `force` is optional and can be used to force update repo even it is
51already was updated before. It ignores file ${target_dir}/.lockmirror which
52used to detect repo status.
53
54Parameter `cache_dir` is optional and can be used to avoid extra disk space
Denis Egorenko87307732018-10-31 17:22:05 +040055usage for repos, which can have same packages, by using hardlinks to files.
Denis Egorenkoa0366fe2019-09-20 14:15:54 +040056File ${cache_dir}/.ready detects cache readiness status and contains
57directories which are using current cache. By removing this file you will flush
58cache and lead to update all repos during next state run.
Denis Egorenko87307732018-10-31 17:22:05 +040059
Bartosz Woroniczde9556a2020-10-21 00:01:59 +020060Set of `X_proxy` parameters could be set to empty line to overwrite proxy
61settings defined in environment variables. This serves like NO_PROXY setting
62which is not supported by debmirror.
63
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +030064**Documentation and bugs**
65
66* http://salt-formulas.readthedocs.io/
67 Learn how to install and update salt-formulas
68
69* https://github.com/salt-formulas/salt-formula-debmirror/issues
70 In the unfortunate event that bugs are discovered, report the issue to the
71 appropriate issue tracker. Use the Github issue tracker for a specific salt
72 formula
73
74* https://launchpad.net/salt-formulas
75 For feature requests, bug reports, or blueprints affecting the entire
76 ecosystem, use the Launchpad salt-formulas project
azvyagintseve5c4e832018-01-25 20:02:46 +020077
78* https://github.com/salt-formulas/salt-formula-debmirror
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +030079 Develop the salt-formulas projects in the master branch and then submit pull
80 requests against a specific formula
azvyagintseve5c4e832018-01-25 20:02:46 +020081
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +030082* https://launchpad.net/~salt-formulas-users
83 Join the salt-formulas-users team and subscribe to mailing list if required
azvyagintseve5c4e832018-01-25 20:02:46 +020084
OlgaGusarenko4b8f0ce2018-06-19 16:04:15 +030085* #salt-formulas @ irc.freenode.net
86 Use this IRC channel in case of any questions or feedback which is always
87 welcome
Denis Egorenko87307732018-10-31 17:22:05 +040088