vagrant-managed-servers 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. data/.gitignore +2 -1
  2. data/.travis.yml +5 -0
  3. data/Berksfile +1 -1
  4. data/CHANGELOG.md +7 -1
  5. data/Gemfile +8 -4
  6. data/README.md +5 -3
  7. data/Rakefile +11 -0
  8. data/Vagrantfile +3 -2
  9. data/lib/vagrant-managed-servers/action/sync_folders.rb +5 -3
  10. data/lib/vagrant-managed-servers/version.rb +1 -1
  11. data/vagrant-managed-servers.gemspec +3 -3
  12. metadata +10 -134
  13. data/cookbooks/apache2/CHANGELOG.md +0 -95
  14. data/cookbooks/apache2/CONTRIBUTING.md +0 -257
  15. data/cookbooks/apache2/Gemfile +0 -10
  16. data/cookbooks/apache2/LICENSE +0 -201
  17. data/cookbooks/apache2/README.md +0 -567
  18. data/cookbooks/apache2/attributes/default.rb +0 -149
  19. data/cookbooks/apache2/attributes/mod_auth_cas.rb +0 -2
  20. data/cookbooks/apache2/attributes/mod_auth_openid.rb +0 -32
  21. data/cookbooks/apache2/definitions/apache_conf.rb +0 -26
  22. data/cookbooks/apache2/definitions/apache_module.rb +0 -53
  23. data/cookbooks/apache2/definitions/apache_site.rb +0 -43
  24. data/cookbooks/apache2/definitions/web_app.rb +0 -49
  25. data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +0 -41
  26. data/cookbooks/apache2/files/default/tests/minitest/default_test.rb +0 -77
  27. data/cookbooks/apache2/files/default/tests/minitest/god_monitor_test.rb +0 -34
  28. data/cookbooks/apache2/files/default/tests/minitest/mod_apreq2_test.rb +0 -19
  29. data/cookbooks/apache2/files/default/tests/minitest/mod_auth_cas_test.rb +0 -11
  30. data/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb +0 -37
  31. data/cookbooks/apache2/files/default/tests/minitest/mod_cgi_test.rb +0 -13
  32. data/cookbooks/apache2/files/default/tests/minitest/mod_dav_svn_test.rb +0 -14
  33. data/cookbooks/apache2/files/default/tests/minitest/mod_fastcgi.rb +0 -11
  34. data/cookbooks/apache2/files/default/tests/minitest/mod_perl_test.rb +0 -18
  35. data/cookbooks/apache2/files/default/tests/minitest/mod_php5_test.rb +0 -13
  36. data/cookbooks/apache2/files/default/tests/minitest/mod_python_test.rb +0 -10
  37. data/cookbooks/apache2/files/default/tests/minitest/mod_ssl_test.rb +0 -23
  38. data/cookbooks/apache2/files/default/tests/minitest/support/helpers.rb +0 -50
  39. data/cookbooks/apache2/metadata.json +0 -513
  40. data/cookbooks/apache2/metadata.rb +0 -207
  41. data/cookbooks/apache2/recipes/default.rb +0 -208
  42. data/cookbooks/apache2/recipes/god_monitor.rb +0 -33
  43. data/cookbooks/apache2/recipes/logrotate.rb +0 -29
  44. data/cookbooks/apache2/recipes/mod_alias.rb +0 -22
  45. data/cookbooks/apache2/recipes/mod_apreq2.rb +0 -54
  46. data/cookbooks/apache2/recipes/mod_auth_basic.rb +0 -20
  47. data/cookbooks/apache2/recipes/mod_auth_cas.rb +0 -59
  48. data/cookbooks/apache2/recipes/mod_auth_digest.rb +0 -20
  49. data/cookbooks/apache2/recipes/mod_auth_openid.rb +0 -111
  50. data/cookbooks/apache2/recipes/mod_authn_file.rb +0 -20
  51. data/cookbooks/apache2/recipes/mod_authnz_ldap.rb +0 -20
  52. data/cookbooks/apache2/recipes/mod_authz_default.rb +0 -20
  53. data/cookbooks/apache2/recipes/mod_authz_groupfile.rb +0 -20
  54. data/cookbooks/apache2/recipes/mod_authz_host.rb +0 -20
  55. data/cookbooks/apache2/recipes/mod_authz_user.rb +0 -20
  56. data/cookbooks/apache2/recipes/mod_autoindex.rb +0 -22
  57. data/cookbooks/apache2/recipes/mod_cgi.rb +0 -20
  58. data/cookbooks/apache2/recipes/mod_dav.rb +0 -20
  59. data/cookbooks/apache2/recipes/mod_dav_fs.rb +0 -21
  60. data/cookbooks/apache2/recipes/mod_dav_svn.rb +0 -41
  61. data/cookbooks/apache2/recipes/mod_deflate.rb +0 -22
  62. data/cookbooks/apache2/recipes/mod_dir.rb +0 -22
  63. data/cookbooks/apache2/recipes/mod_env.rb +0 -20
  64. data/cookbooks/apache2/recipes/mod_expires.rb +0 -20
  65. data/cookbooks/apache2/recipes/mod_fastcgi.rb +0 -26
  66. data/cookbooks/apache2/recipes/mod_fcgid.rb +0 -55
  67. data/cookbooks/apache2/recipes/mod_headers.rb +0 -20
  68. data/cookbooks/apache2/recipes/mod_include.rb +0 -20
  69. data/cookbooks/apache2/recipes/mod_ldap.rb +0 -20
  70. data/cookbooks/apache2/recipes/mod_log_config.rb +0 -24
  71. data/cookbooks/apache2/recipes/mod_logio.rb +0 -24
  72. data/cookbooks/apache2/recipes/mod_mime.rb +0 -22
  73. data/cookbooks/apache2/recipes/mod_negotiation.rb +0 -22
  74. data/cookbooks/apache2/recipes/mod_perl.rb +0 -44
  75. data/cookbooks/apache2/recipes/mod_php5.rb +0 -77
  76. data/cookbooks/apache2/recipes/mod_proxy.rb +0 -22
  77. data/cookbooks/apache2/recipes/mod_proxy_ajp.rb +0 -21
  78. data/cookbooks/apache2/recipes/mod_proxy_balancer.rb +0 -20
  79. data/cookbooks/apache2/recipes/mod_proxy_connect.rb +0 -20
  80. data/cookbooks/apache2/recipes/mod_proxy_http.rb +0 -20
  81. data/cookbooks/apache2/recipes/mod_python.rb +0 -38
  82. data/cookbooks/apache2/recipes/mod_rewrite.rb +0 -20
  83. data/cookbooks/apache2/recipes/mod_setenvif.rb +0 -22
  84. data/cookbooks/apache2/recipes/mod_ssl.rb +0 -46
  85. data/cookbooks/apache2/recipes/mod_status.rb +0 -22
  86. data/cookbooks/apache2/recipes/mod_wsgi.rb +0 -38
  87. data/cookbooks/apache2/recipes/mod_xsendfile.rb +0 -38
  88. data/cookbooks/apache2/templates/default/a2dismod.erb +0 -22
  89. data/cookbooks/apache2/templates/default/a2dissite.erb +0 -29
  90. data/cookbooks/apache2/templates/default/a2enmod.erb +0 -37
  91. data/cookbooks/apache2/templates/default/a2ensite.erb +0 -38
  92. data/cookbooks/apache2/templates/default/apache2.conf.erb +0 -237
  93. data/cookbooks/apache2/templates/default/apache2.god.erb +0 -19
  94. data/cookbooks/apache2/templates/default/charset.erb +0 -6
  95. data/cookbooks/apache2/templates/default/default-site.erb +0 -57
  96. data/cookbooks/apache2/templates/default/mods/README +0 -2
  97. data/cookbooks/apache2/templates/default/mods/alias.conf.erb +0 -24
  98. data/cookbooks/apache2/templates/default/mods/auth_cas.conf.erb +0 -1
  99. data/cookbooks/apache2/templates/default/mods/auth_cas.load.erb +0 -1
  100. data/cookbooks/apache2/templates/default/mods/authopenid.load.erb +0 -1
  101. data/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +0 -101
  102. data/cookbooks/apache2/templates/default/mods/deflate.conf.erb +0 -16
  103. data/cookbooks/apache2/templates/default/mods/dir.conf.erb +0 -5
  104. data/cookbooks/apache2/templates/default/mods/fastcgi.conf.erb +0 -5
  105. data/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +0 -10
  106. data/cookbooks/apache2/templates/default/mods/mime.conf.erb +0 -198
  107. data/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +0 -18
  108. data/cookbooks/apache2/templates/default/mods/php5.conf.erb +0 -16
  109. data/cookbooks/apache2/templates/default/mods/proxy.conf.erb +0 -19
  110. data/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +0 -28
  111. data/cookbooks/apache2/templates/default/mods/ssl.conf.erb +0 -76
  112. data/cookbooks/apache2/templates/default/mods/status.conf.erb +0 -26
  113. data/cookbooks/apache2/templates/default/port_apache.erb +0 -2
  114. data/cookbooks/apache2/templates/default/ports.conf.erb +0 -6
  115. data/cookbooks/apache2/templates/default/security.erb +0 -50
  116. data/cookbooks/apache2/templates/default/web_app.conf.erb +0 -43
  117. data/cookbooks/apt/Berksfile +0 -8
  118. data/cookbooks/apt/CHANGELOG.md +0 -97
  119. data/cookbooks/apt/CONTRIBUTING +0 -29
  120. data/cookbooks/apt/LICENSE +0 -201
  121. data/cookbooks/apt/README.md +0 -243
  122. data/cookbooks/apt/TESTING.md +0 -25
  123. data/cookbooks/apt/attributes/default.rb +0 -4
  124. data/cookbooks/apt/files/default/apt-proxy-v2.conf +0 -50
  125. data/cookbooks/apt/metadata.json +0 -1
  126. data/cookbooks/apt/metadata.rb +0 -30
  127. data/cookbooks/apt/providers/preference.rb +0 -61
  128. data/cookbooks/apt/providers/repository.rb +0 -132
  129. data/cookbooks/apt/recipes/cacher-client.rb +0 -59
  130. data/cookbooks/apt/recipes/cacher-ng.rb +0 -40
  131. data/cookbooks/apt/recipes/default.rb +0 -68
  132. data/cookbooks/apt/resources/preference.rb +0 -30
  133. data/cookbooks/apt/resources/repository.rb +0 -40
  134. data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +0 -174
  135. data/cookbooks/apt/templates/default/01proxy.erb +0 -2
  136. data/cookbooks/apt/templates/default/acng.conf.erb +0 -276
  137. data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +0 -270
@@ -1,276 +0,0 @@
1
-
2
- # Letter case in directive names does not matter. Must be separated with colons.
3
- # Valid boolean values are a zero number for false, non-zero numbers for true.
4
-
5
- CacheDir: /var/cache/apt-cacher-ng
6
-
7
- # set empty to disable logging
8
- LogDir: /var/log/apt-cacher-ng
9
-
10
- # place to look for additional configuration and resource files if they are not
11
- # found in the configuration directory
12
- # SupportDir: /usr/lib/apt-cacher-ng
13
-
14
- # TCP (http) port
15
- # Set to 9999 to emulate apt-proxy
16
- Port:<%= node['apt']['cacher_port'] %>
17
-
18
- # Addresses or hostnames to listen on. Multiple addresses must be separated by
19
- # spaces. Each entry must be an exact local address which is associated with a
20
- # local interface. DNS resolution is performed using getaddrinfo(3) for all
21
- # available protocols (IPv4, IPv6, ...). Using a protocol specific format will
22
- # create binding(s) only on protocol specific socket(s) (e.g. 0.0.0.0 will listen
23
- # only to IPv4).
24
- #
25
- # Default: not set, will listen on all interfaces and protocols
26
- #
27
- # BindAddress: localhost 192.168.7.254 publicNameOnMainInterface
28
-
29
- # The specification of another proxy which shall be used for downloads.
30
- # Username and password are, and see manual for limitations.
31
- #
32
- #Proxy: http://www-proxy.example.net:80
33
- #proxy: username:proxypassword@proxy.example.net:3128
34
-
35
- # Repository remapping. See manual for details.
36
- # In this example, some backends files might be generated during package
37
- # installation using information collected on the system.
38
- Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
39
- Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
40
- Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
41
- Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here
42
- Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here
43
- Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux
44
- Remap-fedora: file:fedora_mirrors # Fedora Linux
45
- Remap-epel: file:epel_mirrors # Fedora EPEL
46
- Remap-slrep: file:sl_mirrors # Scientific Linux
47
-
48
- # This is usually not needed for security.debian.org because it's always the
49
- # same DNS hostname. However, it might be enabled in order to use hooks,
50
- # ForceManaged mode or special flags in this context.
51
- # Remap-secdeb: security.debian.org
52
-
53
- # Virtual page accessible in a web browser to see statistics and status
54
- # information, i.e. under http://localhost:3142/acng-report.html
55
- ReportPage: acng-report.html
56
-
57
- # Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
58
- # used with inetd bridge or cron client.
59
- # SocketPath:/var/run/apt-cacher-ng/socket
60
-
61
- # Forces log file to be written to disk after every line when set to 1. Default
62
- # is 0, buffers are flushed when the client disconnects.
63
- #
64
- # (technically, alias to the Debug option, see its documentation for details)
65
- #
66
- # UnbufferLogs: 0
67
-
68
- # Set to 0 to store only type, time and transfer sizes.
69
- # 1 -> client IP and relative local path are logged too
70
- # VerboseLog: 1
71
-
72
- # Don't detach from the console
73
- # ForeGround: 0
74
-
75
- # Store the pid of the daemon process therein
76
- # PidFile: /var/run/apt-cacher-ng/pid
77
-
78
- # Forbid outgoing connections, work around them or respond with 503 error
79
- # offlinemode:0
80
-
81
- # Forbid all downloads that don't run through preconfigured backends (.where)
82
- #ForceManaged: 0
83
-
84
- # Days before considering an unreferenced file expired (to be deleted).
85
- # Warning: if the value is set too low and particular index files are not
86
- # available for some days (mirror downtime) there is a risk of deletion of
87
- # still useful package files.
88
- ExTreshold: 4
89
-
90
- # Stop expiration when a critical problem appeared. Currently only failed
91
- # refresh of an index file is considered as critical.
92
- #
93
- # WARNING: don't touch this option or set to zero.
94
- # Anything else is DANGEROUS and may cause data loss.
95
- #
96
- # ExAbortOnProblems: 1
97
-
98
- # Replace some Windows/DOS-FS incompatible chars when storing
99
- # StupidFs: 0
100
-
101
- # Experimental feature for apt-listbugs: pass-through SOAP requests and
102
- # responses to/from bugs.debian.org. If not set, default is true if
103
- # ForceManaged is enabled and false otherwise.
104
- # ForwardBtsSoap: 1
105
-
106
- # The daemon has a small cache for DNS data, to speed up resolution. The
107
- # expiration time of the DNS entries can be configured in seconds.
108
- # DnsCacheSeconds: 3600
109
-
110
- # Don't touch the following values without good consideration!
111
- #
112
- # Max. count of connection threads kept ready (for faster response in the
113
- # future). Should be a sane value between 0 and average number of connections,
114
- # and depend on the amount of spare RAM.
115
- # MaxStandbyConThreads: 8
116
- #
117
- # Hard limit of active thread count for incoming connections, i.e. operation
118
- # is refused when this value is reached (below zero = unlimited).
119
- # MaxConThreads: -1
120
- #
121
- # Pigeonholing files with regular expressions (static/volatile). Can be
122
- # overriden here but not should not be done permanently because future update
123
- # of default settings would not be applied later.
124
- # VfilePattern = (^|.*?/)(Index|Packages(\.gz|\.bz2|\.lzma|\.xz)?|InRelease|Release|Release\.gpg|Sources(\.gz|\.bz2|\.lzma|\.xz)?|release|index\.db-.*\.gz|Contents-[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|((setup|setup-legacy)(\.ini|\.bz2|\.hint)(\.sig)?)|mirrors\.lst|repo(index|md)\.xml(\.asc|\.key)?|directory\.yast|products|content(\.asc|\.key)?|media|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz|info\.txt|license\.tar\.gz|license\.zip|.*\.db(\.tar\.gz)?|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|metalink\?repo|.*prestodelta\.xml\.gz)$|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*
125
- # PfilePattern = .*(\.d?deb|\.rpm|\.dsc|\.tar(\.gz|\.bz2|\.lzma|\.xz)(\.gpg)?|\.diff(\.gz|\.bz2|\.lzma|\.xz)|\.jigdo|\.template|changelog|copyright|\.udeb|\.debdelta|\.diff/.*\.gz|(Devel)?ReleaseAnnouncement(\?.*)?|[a-f0-9]+-(susedata|updateinfo|primary|deltainfo).xml.gz|fonts/(final/)?[a-z]+32.exe(\?download.*)?|/dists/.*/installer-[^/]+/[0-9][^/]+/images/.*)$
126
- # Whitelist for expiration, file types not to be removed even when being
127
- # unreferenced. Default: many parts from VfilePattern where no parent index
128
- # exists or might be unknown.
129
- # WfilePattern = (^|.*?/)(Release|InRelease|Release\.gpg|(Packages|Sources)(\.gz|\.bz2|\.lzma|\.xz)?|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|.*\.xml|.*\.db\.tar\.gz|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|[a-z]+32.exe)$|/dists/.*/installer-.*/images/.*
130
-
131
- # Higher modes only working with the debug version
132
- # Warning, writes a lot into apt-cacher.err logfile
133
- # Value overwrites UnbufferLogs setting (aliased)
134
- # Debug:3
135
-
136
- # Usually, general purpose proxies like Squid expose the IP address of the
137
- # client user to the remote server using the X-Forwarded-For HTTP header. This
138
- # behaviour can be optionally turned on with the Expose-Origin option.
139
- # ExposeOrigin: 0
140
-
141
- # When logging the originating IP address, trust the information supplied by
142
- # the client in the X-Forwarded-For header.
143
- # LogSubmittedOrigin: 0
144
-
145
- # The version string reported to the peer, to be displayed as HTTP client (and
146
- # version) in the logs of the mirror.
147
- # WARNING: some archives use this header to detect/guess capabilities of the
148
- # client (i.e. redirection support) and change the behaviour accordingly, while
149
- # ACNG might not support the expected features. Expect side effects.
150
- #
151
- # UserAgent: Yet Another HTTP Client/1.2.3p4
152
-
153
- # In some cases the Import and Expiration tasks might create fresh volatile
154
- # data for internal use by reconstructing them using patch files. This
155
- # by-product might be recompressed with bzip2 and with some luck the resulting
156
- # file becomes identical to the *.bz2 file on the server, usable for APT
157
- # clients trying to fetch the full .bz2 compressed version. Injection of the
158
- # generated files into the cache has however a disadvantage on underpowered
159
- # servers: bzip2 compression can create high load on the server system and the
160
- # visible download of the busy .bz2 files also becomes slower.
161
- #
162
- # RecompBz2: 0
163
-
164
- # Network timeout for outgoing connections.
165
- # NetworkTimeout: 60
166
-
167
- # Sometimes it makes sense to not store the data in cache and just return the
168
- # package data to client as it comes in. DontCache parameters can enable this
169
- # behaviour for certain URL types. The tokens are extended regular expressions
170
- # that URLs are matched against.
171
- #
172
- # DontCacheRequested is applied to the URL as it comes in from the client.
173
- # Example: exclude packages built with kernel-package for x86
174
- # DontCacheRequested: linux-.*_10\...\.Custo._i386
175
- # Example usecase: exclude popular private IP ranges from caching
176
- # DontCacheRequested: 192.168.0 ^10\..* 172.30
177
- #
178
- # DontCacheResolved is applied to URLs after mapping to the target server. If
179
- # multiple backend servers are specified then it's only matched against the
180
- # download link for the FIRST possible source (due to implementation limits).
181
- # Example usecase: all Ubuntu stuff comes from a local mirror (specified as
182
- # backend), don't cache it again:
183
- # DontCacheResolved: ubuntumirror.local.net
184
- #
185
- # DontCache directive sets (overrides) both, DontCacheResolved and
186
- # DontCacheRequested. Provided for convenience, see those directives for
187
- # details.
188
- #
189
- # Default permission set of freshly created files and directories, as octal
190
- # numbers (see chmod(1) for details).
191
- # Can by limited by the umask value (see umask(2) for details) if it's set in
192
- # the environment of the starting shell, e.g. in apt-cacher-ng init script or
193
- # in its configuration file.
194
- # DirPerms: 00755
195
- # FilePerms: 00664
196
- #
197
- #
198
- # It's possible to use use apt-cacher-ng as a regular web server with limited
199
- # feature set, i.e.
200
- # including directory browsing and download of any file;
201
- # excluding sorting, mime types/encodings, CGI execution, index page
202
- # redirection and other funny things.
203
- # To get this behavior, mappings between virtual directories and real
204
- # directories on the server must be defined with the LocalDirs directive.
205
- # Virtual and real dirs are separated by spaces, multiple pairs are separated
206
- # by semi-colons. Real directories must be absolute paths.
207
- # NOTE: Since the names of that key directories share the same namespace as
208
- # repository names (see Remap-...) it's administrators job to avoid such
209
- # collisions on them (unless created deliberately).
210
- #
211
- # LocalDirs: woo /data/debarchive/woody ; hamm /data/debarchive/hamm
212
-
213
- # Precache a set of files referenced by specified index files. This can be used
214
- # to create a partial mirror usable for offline work. There are certain limits
215
- # and restrictions on the path specification, see manual for details. A list of
216
- # (maybe) relevant index files could be retrieved via
217
- # "apt-get --print-uris update" on a client machine.
218
- #
219
- # PrecacheFor: debrep/dists/unstable/*/source/Sources* debrep/dists/unstable/*/binary-amd64/Packages*
220
-
221
- # Arbitrary set of data to append to request headers sent over the wire. Should
222
- # be a well formated HTTP headers part including newlines (DOS style) which
223
- # can be entered as escape sequences (\r\n).
224
- # RequestAppendix: X-Tracking-Choice: do-not-track\r\n
225
-
226
- # Specifies the IP protocol families to use for remote connections. Order does
227
- # matter, first specified are considered first. Possible combinations:
228
- # v6 v4
229
- # v4 v6
230
- # v6
231
- # v4
232
- # (empty or not set: use system default)
233
- #
234
- # ConnectProto: v6 v4
235
-
236
- # Regular expiration algorithm finds package files which are no longer listed
237
- # in any index file and removes them of them after a safety period.
238
- # This option allows to keep more versions of a package in the cache after
239
- # safety period is over.
240
- # KeepExtraVersions: 1
241
-
242
- # Optionally uses TCP access control provided by libwrap, see hosts_access(5)
243
- # for details. Daemon name is apt-cacher-ng. Default if not set: decided on
244
- # startup by looking for explicit mentioning of apt-cacher-ng in
245
- # /etc/hosts.allow or /etc/hosts.deny files.
246
- # UseWrap: 0
247
-
248
- # If many machines from the same local network attempt to update index files
249
- # (apt-get update) at nearly the same time, the known state of these index file
250
- # is temporarily frozen and multiple requests receive the cached response
251
- # without contacting the server. This parameter (in seconds) specifies the
252
- # length of this period before the files are considered outdated.
253
- # Setting it too low transfers more data and increases remote server load,
254
- # setting it too high (more than a couple of minutes) increases the risk of
255
- # delivering inconsistent responses to the clients.
256
- # FreshIndexMaxAge: 27
257
-
258
- # Usually the users are not allowed to specify custom TCP ports of remote
259
- # mirrors in the requests, only the default HTTP port can be used (instead,
260
- # proxy administrator can create Remap- rules with custom ports). This
261
- # restriction can be disabled by specifying a list of allowed ports or 0 for
262
- # any port.
263
- #
264
- # AllowUserPorts: 80
265
-
266
- # Normally the HTTP redirection responses are forwarded to the original caller
267
- # (i.e. APT) which starts a new download attempt from the new URL. This
268
- # solution is ok for client configurations with proxy mode but doesn't work
269
- # well with configurations using URL prefixes. To work around this the server
270
- # can restart its own download with another URL. However, this might be used to
271
- # circumvent download source policies by malicious users.
272
- # The RedirMax option specifies how many such redirects the server should
273
- # follow per request, 0 disables the internal redirection. If not set,
274
- # default value is 0 if ForceManaged is used and 5 otherwise.
275
- #
276
- # RedirMax: 5
@@ -1,270 +0,0 @@
1
-
2
- # Letter case in directive names does not matter. Must be separated with colons.
3
- # Valid boolean values are a zero number for false, non-zero numbers for true.
4
-
5
- CacheDir: /var/cache/apt-cacher-ng
6
-
7
- # set empty to disable logging
8
- LogDir: /var/log/apt-cacher-ng
9
-
10
- # place to look for additional configuration and resource files if they are not
11
- # found in the configuration directory
12
- # SupportDir: /usr/lib/apt-cacher-ng
13
-
14
- # TCP (http) port
15
- # Set to 9999 to emulate apt-proxy
16
- Port:<%= node['apt']['cacher_port'] %>
17
-
18
- # Addresses or hostnames to listen on. Multiple addresses must be separated by
19
- # spaces. Each entry must be an exact local address which is associated with a
20
- # local interface. DNS resolution is performed using getaddrinfo(3) for all
21
- # available protocols (IPv4, IPv6, ...). Using a protocol specific format will
22
- # create binding(s) only on protocol specific socket(s) (e.g. 0.0.0.0 will listen
23
- # only to IPv4).
24
- #
25
- # Default: not set, will listen on all interfaces and protocols
26
- #
27
- # BindAddress: localhost 192.168.7.254 publicNameOnMainInterface
28
-
29
- # The specification of another proxy which shall be used for downloads.
30
- # Username and password are, and see manual for limitations.
31
- #
32
- #Proxy: http://www-proxy.example.net:80
33
- #proxy: username:proxypassword@proxy.example.net:3128
34
-
35
- # Repository remapping. See manual for details.
36
- # In this example, some backends files might be generated during package
37
- # installation using information collected on the system.
38
- Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
39
- Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
40
- Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
41
-
42
- # This is usually not needed for security.debian.org because it's always the
43
- # same DNS hostname. However, it might be enabled in order to use hooks,
44
- # ForceManaged mode or special flags in this context.
45
- # Remap-secdeb: security.debian.org
46
-
47
- # Virtual page accessible in a web browser to see statistics and status
48
- # information, i.e. under http://localhost:3142/acng-report.html
49
- ReportPage: acng-report.html
50
-
51
- # Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
52
- # used with inetd bridge or cron client.
53
- # SocketPath:/var/run/apt-cacher-ng/socket
54
-
55
- # Forces log file to be written to disk after every line when set to 1. Default
56
- # is 0, buffers are flushed when the client disconnects.
57
- #
58
- # (technically, alias to the Debug option, see its documentation for details)
59
- #
60
- # UnbufferLogs: 0
61
-
62
- # Set to 0 to store only type, time and transfer sizes.
63
- # 1 -> client IP and relative local path are logged too
64
- # VerboseLog: 1
65
-
66
- # Don't detach from the console
67
- # ForeGround: 0
68
-
69
- # Store the pid of the daemon process therein
70
- # PidFile: /var/run/apt-cacher-ng/pid
71
-
72
- # Forbid outgoing connections, work around them or respond with 503 error
73
- # offlinemode:0
74
-
75
- # Forbid all downloads that don't run through preconfigured backends (.where)
76
- #ForceManaged: 0
77
-
78
- # Days before considering an unreferenced file expired (to be deleted).
79
- # Warning: if the value is set too low and particular index files are not
80
- # available for some days (mirror downtime) there is a risk of deletion of
81
- # still useful package files.
82
- ExTreshold: 4
83
-
84
- # Stop expiration when a critical problem appeared. Currently only failed
85
- # refresh of an index file is considered as critical.
86
- #
87
- # WARNING: don't touch this option or set to zero.
88
- # Anything else is DANGEROUS and may cause data loss.
89
- #
90
- # ExAbortOnProblems: 1
91
-
92
- # Replace some Windows/DOS-FS incompatible chars when storing
93
- # StupidFs: 0
94
-
95
- # Experimental feature for apt-listbugs: pass-through SOAP requests and
96
- # responses to/from bugs.debian.org. If not set, default is true if
97
- # ForceManaged is enabled and false otherwise.
98
- # ForwardBtsSoap: 1
99
-
100
- # The daemon has a small cache for DNS data, to speed up resolution. The
101
- # expiration time of the DNS entries can be configured in seconds.
102
- # DnsCacheSeconds: 3600
103
-
104
- # Don't touch the following values without good consideration!
105
- #
106
- # Max. count of connection threads kept ready (for faster response in the
107
- # future). Should be a sane value between 0 and average number of connections,
108
- # and depend on the amount of spare RAM.
109
- # MaxStandbyConThreads: 8
110
- #
111
- # Hard limit of active thread count for incoming connections, i.e. operation
112
- # is refused when this value is reached (below zero = unlimited).
113
- # MaxConThreads: -1
114
- #
115
- # Pigeonholing files with regular expressions (static/volatile). Can be
116
- # overriden here but not should not be done permanently because future update
117
- # of default settings would not be applied later.
118
- # VfilePattern = (^|.*?/)(Index|Packages(\.gz|\.bz2|\.lzma|\.xz)?|InRelease|Release|Release\.gpg|Sources(\.gz|\.bz2|\.lzma|\.xz)?|release|index\.db-.*\.gz|Contents-[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|((setup|setup-legacy)(\.ini|\.bz2|\.hint)(\.sig)?)|mirrors\.lst|repo(index|md)\.xml(\.asc|\.key)?|directory\.yast|products|content(\.asc|\.key)?|media|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz|info\.txt|license\.tar\.gz|license\.zip|.*\.db(\.tar\.gz)?|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|metalink\?repo|.*prestodelta\.xml\.gz)$|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*
119
- # PfilePattern = .*(\.d?deb|\.rpm|\.dsc|\.tar(\.gz|\.bz2|\.lzma|\.xz)(\.gpg)?|\.diff(\.gz|\.bz2|\.lzma|\.xz)|\.jigdo|\.template|changelog|copyright|\.udeb|\.debdelta|\.diff/.*\.gz|(Devel)?ReleaseAnnouncement(\?.*)?|[a-f0-9]+-(susedata|updateinfo|primary|deltainfo).xml.gz|fonts/(final/)?[a-z]+32.exe(\?download.*)?|/dists/.*/installer-[^/]+/[0-9][^/]+/images/.*)$
120
- # Whitelist for expiration, file types not to be removed even when being
121
- # unreferenced. Default: many parts from VfilePattern where no parent index
122
- # exists or might be unknown.
123
- # WfilePattern = (^|.*?/)(Release|InRelease|Release\.gpg|(Packages|Sources)(\.gz|\.bz2|\.lzma|\.xz)?|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|.*\.xml|.*\.db\.tar\.gz|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|[a-z]+32.exe)$|/dists/.*/installer-.*/images/.*
124
-
125
- # Higher modes only working with the debug version
126
- # Warning, writes a lot into apt-cacher.err logfile
127
- # Value overwrites UnbufferLogs setting (aliased)
128
- # Debug:3
129
-
130
- # Usually, general purpose proxies like Squid expose the IP address of the
131
- # client user to the remote server using the X-Forwarded-For HTTP header. This
132
- # behaviour can be optionally turned on with the Expose-Origin option.
133
- # ExposeOrigin: 0
134
-
135
- # When logging the originating IP address, trust the information supplied by
136
- # the client in the X-Forwarded-For header.
137
- # LogSubmittedOrigin: 0
138
-
139
- # The version string reported to the peer, to be displayed as HTTP client (and
140
- # version) in the logs of the mirror.
141
- # WARNING: some archives use this header to detect/guess capabilities of the
142
- # client (i.e. redirection support) and change the behaviour accordingly, while
143
- # ACNG might not support the expected features. Expect side effects.
144
- #
145
- # UserAgent: Yet Another HTTP Client/1.2.3p4
146
-
147
- # In some cases the Import and Expiration tasks might create fresh volatile
148
- # data for internal use by reconstructing them using patch files. This
149
- # by-product might be recompressed with bzip2 and with some luck the resulting
150
- # file becomes identical to the *.bz2 file on the server, usable for APT
151
- # clients trying to fetch the full .bz2 compressed version. Injection of the
152
- # generated files into the cache has however a disadvantage on underpowered
153
- # servers: bzip2 compression can create high load on the server system and the
154
- # visible download of the busy .bz2 files also becomes slower.
155
- #
156
- # RecompBz2: 0
157
-
158
- # Network timeout for outgoing connections.
159
- # NetworkTimeout: 60
160
-
161
- # Sometimes it makes sense to not store the data in cache and just return the
162
- # package data to client as it comes in. DontCache parameters can enable this
163
- # behaviour for certain URL types. The tokens are extended regular expressions
164
- # that URLs are matched against.
165
- #
166
- # DontCacheRequested is applied to the URL as it comes in from the client.
167
- # Example: exclude packages built with kernel-package for x86
168
- # DontCacheRequested: linux-.*_10\...\.Custo._i386
169
- # Example usecase: exclude popular private IP ranges from caching
170
- # DontCacheRequested: 192.168.0 ^10\..* 172.30
171
- #
172
- # DontCacheResolved is applied to URLs after mapping to the target server. If
173
- # multiple backend servers are specified then it's only matched against the
174
- # download link for the FIRST possible source (due to implementation limits).
175
- # Example usecase: all Ubuntu stuff comes from a local mirror (specified as
176
- # backend), don't cache it again:
177
- # DontCacheResolved: ubuntumirror.local.net
178
- #
179
- # DontCache directive sets (overrides) both, DontCacheResolved and
180
- # DontCacheRequested. Provided for convenience, see those directives for
181
- # details.
182
- #
183
- # Default permission set of freshly created files and directories, as octal
184
- # numbers (see chmod(1) for details).
185
- # Can by limited by the umask value (see umask(2) for details) if it's set in
186
- # the environment of the starting shell, e.g. in apt-cacher-ng init script or
187
- # in its configuration file.
188
- # DirPerms: 00755
189
- # FilePerms: 00664
190
- #
191
- #
192
- # It's possible to use use apt-cacher-ng as a regular web server with limited
193
- # feature set, i.e.
194
- # including directory browsing and download of any file;
195
- # excluding sorting, mime types/encodings, CGI execution, index page
196
- # redirection and other funny things.
197
- # To get this behavior, mappings between virtual directories and real
198
- # directories on the server must be defined with the LocalDirs directive.
199
- # Virtual and real dirs are separated by spaces, multiple pairs are separated
200
- # by semi-colons. Real directories must be absolute paths.
201
- # NOTE: Since the names of that key directories share the same namespace as
202
- # repository names (see Remap-...) it's administrators job to avoid such
203
- # collisions on them (unless created deliberately).
204
- #
205
- # LocalDirs: woo /data/debarchive/woody ; hamm /data/debarchive/hamm
206
-
207
- # Precache a set of files referenced by specified index files. This can be used
208
- # to create a partial mirror usable for offline work. There are certain limits
209
- # and restrictions on the path specification, see manual for details. A list of
210
- # (maybe) relevant index files could be retrieved via
211
- # "apt-get --print-uris update" on a client machine.
212
- #
213
- # PrecacheFor: debrep/dists/unstable/*/source/Sources* debrep/dists/unstable/*/binary-amd64/Packages*
214
-
215
- # Arbitrary set of data to append to request headers sent over the wire. Should
216
- # be a well formated HTTP headers part including newlines (DOS style) which
217
- # can be entered as escape sequences (\r\n).
218
- # RequestAppendix: X-Tracking-Choice: do-not-track\r\n
219
-
220
- # Specifies the IP protocol families to use for remote connections. Order does
221
- # matter, first specified are considered first. Possible combinations:
222
- # v6 v4
223
- # v4 v6
224
- # v6
225
- # v4
226
- # (empty or not set: use system default)
227
- #
228
- # ConnectProto: v6 v4
229
-
230
- # Regular expiration algorithm finds package files which are no longer listed
231
- # in any index file and removes them of them after a safety period.
232
- # This option allows to keep more versions of a package in the cache after
233
- # safety period is over.
234
- # KeepExtraVersions: 1
235
-
236
- # Optionally uses TCP access control provided by libwrap, see hosts_access(5)
237
- # for details. Daemon name is apt-cacher-ng. Default if not set: decided on
238
- # startup by looking for explicit mentioning of apt-cacher-ng in
239
- # /etc/hosts.allow or /etc/hosts.deny files.
240
- # UseWrap: 0
241
-
242
- # If many machines from the same local network attempt to update index files
243
- # (apt-get update) at nearly the same time, the known state of these index file
244
- # is temporarily frozen and multiple requests receive the cached response
245
- # without contacting the server. This parameter (in seconds) specifies the
246
- # length of this period before the files are considered outdated.
247
- # Setting it too low transfers more data and increases remote server load,
248
- # setting it too high (more than a couple of minutes) increases the risk of
249
- # delivering inconsistent responses to the clients.
250
- # FreshIndexMaxAge: 27
251
-
252
- # Usually the users are not allowed to specify custom TCP ports of remote
253
- # mirrors in the requests, only the default HTTP port can be used (instead,
254
- # proxy administrator can create Remap- rules with custom ports). This
255
- # restriction can be disabled by specifying a list of allowed ports or 0 for
256
- # any port.
257
- #
258
- # AllowUserPorts: 80
259
-
260
- # Normally the HTTP redirection responses are forwarded to the original caller
261
- # (i.e. APT) which starts a new download attempt from the new URL. This
262
- # solution is ok for client configurations with proxy mode but doesn't work
263
- # well with configurations using URL prefixes. To work around this the server
264
- # can restart its own download with another URL. However, this might be used to
265
- # circumvent download source policies by malicious users.
266
- # The RedirMax option specifies how many such redirects the server should
267
- # follow per request, 0 disables the internal redirection. If not set,
268
- # default value is 0 if ForceManaged is used and 5 otherwise.
269
- #
270
- # RedirMax: 5