vagabond 0.2.8 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +16 -0
- data/DEVELOP.md +38 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +33 -0
- data/README.md +55 -21
- data/USAGE.md +28 -3
- data/Vagabondfile.sample +47 -0
- data/Vagrantfile +17 -5
- data/bin/vagabond +5 -0
- data/lib/vagabond/Cheffile +7 -0
- data/lib/vagabond/Cheffile.dev +7 -0
- data/lib/vagabond/actions/cluster.rb +22 -8
- data/lib/vagabond/actions/create.rb +7 -4
- data/lib/vagabond/actions/destroy.rb +24 -14
- data/lib/vagabond/actions/freeze.rb +1 -0
- data/lib/vagabond/actions/init.rb +8 -11
- data/lib/vagabond/actions/provision.rb +16 -8
- data/lib/vagabond/actions/rebuild.rb +4 -9
- data/lib/vagabond/actions/ssh.rb +9 -1
- data/lib/vagabond/actions/start.rb +1 -0
- data/lib/vagabond/actions/status.rb +1 -0
- data/lib/vagabond/actions/thaw.rb +1 -0
- data/lib/vagabond/actions/up.rb +22 -7
- data/lib/vagabond/bootstraps/chef_10_compat_config.erb +62 -0
- data/lib/vagabond/bootstraps/no_lazy_load.erb +63 -0
- data/lib/vagabond/bootstraps/server-zero.erb +1 -8
- data/lib/vagabond/bootstraps/server.erb +9 -6
- data/lib/vagabond/constants.rb +1 -6
- data/lib/vagabond/core.rb +209 -0
- data/lib/vagabond/errors.rb +3 -0
- data/lib/vagabond/helpers.rb +11 -99
- data/lib/vagabond/helpers/base.rb +134 -0
- data/lib/vagabond/helpers/callbacks.rb +47 -0
- data/lib/vagabond/helpers/chains.rb +23 -0
- data/lib/vagabond/helpers/commands.rb +49 -0
- data/lib/vagabond/helpers/knife.rb +47 -0
- data/lib/vagabond/helpers/naming.rb +39 -0
- data/lib/vagabond/helpers/server.rb +30 -0
- data/lib/vagabond/internal_configuration.rb +186 -32
- data/lib/vagabond/kitchen.rb +110 -60
- data/lib/vagabond/knife.rb +5 -1
- data/lib/vagabond/layout.rb +1 -0
- data/lib/vagabond/monkey/kitchen_config.rb +1 -0
- data/lib/vagabond/notify_mash.rb +25 -0
- data/lib/vagabond/server.rb +81 -49
- data/lib/vagabond/settings.rb +17 -0
- data/lib/vagabond/spec.rb +125 -99
- data/lib/vagabond/uploader.rb +4 -1
- data/lib/vagabond/uploader/berkshelf.rb +2 -1
- data/lib/vagabond/uploader/knife.rb +3 -9
- data/lib/vagabond/uploader/librarian.rb +2 -5
- data/lib/vagabond/vagabond.rb +77 -93
- data/lib/vagabond/vagabondfile.rb +73 -9
- data/lib/vagabond/version.rb +2 -1
- data/vagabond.gemspec +7 -5
- metadata +58 -81
- data/lib/vagabond/cookbooks/apt/Berksfile +0 -8
- data/lib/vagabond/cookbooks/apt/CHANGELOG.md +0 -97
- data/lib/vagabond/cookbooks/apt/CONTRIBUTING +0 -29
- data/lib/vagabond/cookbooks/apt/LICENSE +0 -201
- data/lib/vagabond/cookbooks/apt/README.md +0 -243
- data/lib/vagabond/cookbooks/apt/TESTING.md +0 -25
- data/lib/vagabond/cookbooks/apt/attributes/default.rb +0 -4
- data/lib/vagabond/cookbooks/apt/files/default/apt-proxy-v2.conf +0 -50
- data/lib/vagabond/cookbooks/apt/metadata.rb +0 -30
- data/lib/vagabond/cookbooks/apt/providers/preference.rb +0 -61
- data/lib/vagabond/cookbooks/apt/providers/repository.rb +0 -132
- data/lib/vagabond/cookbooks/apt/recipes/cacher-client.rb +0 -59
- data/lib/vagabond/cookbooks/apt/recipes/cacher-ng.rb +0 -40
- data/lib/vagabond/cookbooks/apt/recipes/default.rb +0 -68
- data/lib/vagabond/cookbooks/apt/resources/preference.rb +0 -30
- data/lib/vagabond/cookbooks/apt/resources/repository.rb +0 -40
- data/lib/vagabond/cookbooks/apt/templates/debian-6.0/acng.conf.erb +0 -174
- data/lib/vagabond/cookbooks/apt/templates/default/01proxy.erb +0 -2
- data/lib/vagabond/cookbooks/apt/templates/default/acng.conf.erb +0 -276
- data/lib/vagabond/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +0 -270
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/README.md +0 -1
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/files/default/tests/minitest/cacher-ng_test.rb +0 -28
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/files/default/tests/minitest/default_test.rb +0 -28
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/files/default/tests/minitest/lwrps_test.rb +0 -48
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/files/default/tests/minitest/support/helpers.rb +0 -29
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/metadata.rb +0 -6
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/recipes/cacher-ng.rb +0 -20
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/recipes/default.rb +0 -20
- data/lib/vagabond/cookbooks/apt/test/cookbooks/apt_test/recipes/lwrps.rb +0 -66
- data/lib/vagabond/cookbooks/lxc/CHANGELOG.md +0 -37
- data/lib/vagabond/cookbooks/lxc/Gemfile +0 -4
- data/lib/vagabond/cookbooks/lxc/Gemfile.lock +0 -41
- data/lib/vagabond/cookbooks/lxc/README.md +0 -112
- data/lib/vagabond/cookbooks/lxc/attributes/default.rb +0 -26
- data/lib/vagabond/cookbooks/lxc/files/default/knife_lxc +0 -228
- data/lib/vagabond/cookbooks/lxc/files/default/lxc-awesome-ephemeral +0 -499
- data/lib/vagabond/cookbooks/lxc/libraries/lxc.rb +0 -477
- data/lib/vagabond/cookbooks/lxc/libraries/lxc_expanded_resources.rb +0 -40
- data/lib/vagabond/cookbooks/lxc/libraries/lxc_file_config.rb +0 -84
- data/lib/vagabond/cookbooks/lxc/libraries/monkey.rb +0 -51
- data/lib/vagabond/cookbooks/lxc/metadata.rb +0 -12
- data/lib/vagabond/cookbooks/lxc/providers/config.rb +0 -75
- data/lib/vagabond/cookbooks/lxc/providers/container.rb +0 -354
- data/lib/vagabond/cookbooks/lxc/providers/default.rb +0 -57
- data/lib/vagabond/cookbooks/lxc/providers/ephemeral.rb +0 -40
- data/lib/vagabond/cookbooks/lxc/providers/fstab.rb +0 -30
- data/lib/vagabond/cookbooks/lxc/providers/interface.rb +0 -45
- data/lib/vagabond/cookbooks/lxc/providers/service.rb +0 -53
- data/lib/vagabond/cookbooks/lxc/recipes/containers.rb +0 -13
- data/lib/vagabond/cookbooks/lxc/recipes/default.rb +0 -58
- data/lib/vagabond/cookbooks/lxc/recipes/install_dependencies.rb +0 -15
- data/lib/vagabond/cookbooks/lxc/recipes/knife.rb +0 -37
- data/lib/vagabond/cookbooks/lxc/resources/config.rb +0 -19
- data/lib/vagabond/cookbooks/lxc/resources/container.rb +0 -54
- data/lib/vagabond/cookbooks/lxc/resources/default.rb +0 -12
- data/lib/vagabond/cookbooks/lxc/resources/ephemeral.rb +0 -13
- data/lib/vagabond/cookbooks/lxc/resources/fstab.rb +0 -12
- data/lib/vagabond/cookbooks/lxc/resources/interface.rb +0 -13
- data/lib/vagabond/cookbooks/lxc/resources/service.rb +0 -5
- data/lib/vagabond/cookbooks/lxc/templates/default/client.rb.erb +0 -13
- data/lib/vagabond/cookbooks/lxc/templates/default/default-lxc.erb +0 -3
- data/lib/vagabond/cookbooks/lxc/templates/default/file_content.erb +0 -2
- data/lib/vagabond/cookbooks/lxc/templates/default/fstab.erb +0 -5
- data/lib/vagabond/cookbooks/lxc/templates/default/interface.erb +0 -27
- data/lib/vagabond/cookbooks/vagabond/README.md +0 -10
- data/lib/vagabond/cookbooks/vagabond/attributes/default.rb +0 -18
- data/lib/vagabond/cookbooks/vagabond/files/default/lxc-centos +0 -460
- data/lib/vagabond/cookbooks/vagabond/libraries/vagabond.rb +0 -10
- data/lib/vagabond/cookbooks/vagabond/metadata.rb +0 -8
- data/lib/vagabond/cookbooks/vagabond/recipes/default.rb +0 -132
- data/lib/vagabond/cookbooks/vagabond/recipes/zero.rb +0 -9
- data/lib/vagabond/helpers/cheffile_loader.rb +0 -20
- data/vagabond-0.2.6.gem +0 -0
@@ -1,30 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: apt
|
3
|
-
# Resource:: preference
|
4
|
-
#
|
5
|
-
# Copyright 2010-2011, Opscode, Inc.
|
6
|
-
#
|
7
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
# you may not use this file except in compliance with the License.
|
9
|
-
# You may obtain a copy of the License at
|
10
|
-
#
|
11
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
#
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
|
20
|
-
actions :add, :remove
|
21
|
-
|
22
|
-
def initialize(*args)
|
23
|
-
super
|
24
|
-
@action = :add
|
25
|
-
end
|
26
|
-
|
27
|
-
attribute :package_name, :kind_of => String, :name_attribute => true
|
28
|
-
attribute :glob, :kind_of => String
|
29
|
-
attribute :pin, :kind_of => String
|
30
|
-
attribute :pin_priority, :kind_of => String
|
@@ -1,40 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: apt
|
3
|
-
# Resource:: repository
|
4
|
-
#
|
5
|
-
# Copyright 2010-2011, Opscode, Inc.
|
6
|
-
#
|
7
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
# you may not use this file except in compliance with the License.
|
9
|
-
# You may obtain a copy of the License at
|
10
|
-
#
|
11
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
#
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
#
|
19
|
-
|
20
|
-
actions :add, :remove
|
21
|
-
|
22
|
-
def initialize(*args)
|
23
|
-
super
|
24
|
-
@action = :add
|
25
|
-
end
|
26
|
-
|
27
|
-
#name of the repo, used for source.list filename
|
28
|
-
attribute :repo_name, :kind_of => String, :name_attribute => true
|
29
|
-
attribute :uri, :kind_of => String
|
30
|
-
attribute :distribution, :kind_of => String
|
31
|
-
attribute :components, :kind_of => Array, :default => []
|
32
|
-
attribute :arch, :kind_of => String, :default => nil
|
33
|
-
#whether or not to add the repository as a source repo as well
|
34
|
-
attribute :deb_src, :default => false
|
35
|
-
attribute :keyserver, :kind_of => String, :default => nil
|
36
|
-
attribute :key, :kind_of => String, :default => nil
|
37
|
-
attribute :cookbook, :kind_of => String, :default => nil
|
38
|
-
#trigger cache rebuild
|
39
|
-
#If not you can trigger in the recipe itself after checking the status of resource.updated{_by_last_action}?
|
40
|
-
attribute :cache_rebuild, :kind_of => [TrueClass, FalseClass], :default => true
|
@@ -1,174 +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
|
-
# TCP (http) port
|
11
|
-
# Set to 9999 to emulate apt-proxy
|
12
|
-
Port:<%= node['apt']['cacher_port'] %>
|
13
|
-
|
14
|
-
# Addresses or hostnames to listen on. Multiple addresses must be separated by
|
15
|
-
# spaces. Each entry must be associated with a local interface. DNS resolution
|
16
|
-
# is performed using getaddrinfo(3) for all available protocols (i.e. IPv4 and
|
17
|
-
# IPv6 if available).
|
18
|
-
#
|
19
|
-
# Default: not set, will listen on all interfaces.
|
20
|
-
#
|
21
|
-
# BindAddress: localhost 192.168.7.254 publicNameOnMainInterface
|
22
|
-
|
23
|
-
#Proxy: http://www-proxy.example.net:80
|
24
|
-
#proxy: http://username:proxypassword@proxy.example.net:3128
|
25
|
-
|
26
|
-
# Repository remapping. See manual for details.
|
27
|
-
# In this example, backends file is generated during package installation.
|
28
|
-
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
|
29
|
-
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu
|
30
|
-
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol
|
31
|
-
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file
|
32
|
-
|
33
|
-
# Virtual page accessible in a web browser to see statistics and status
|
34
|
-
# information, i.e. under http://localhost:3142/acng-report.html
|
35
|
-
ReportPage: acng-report.html
|
36
|
-
|
37
|
-
# Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
|
38
|
-
# used with inetd bridge or cron client.
|
39
|
-
# SocketPath:/var/run/apt-cacher-ng/socket
|
40
|
-
|
41
|
-
# Forces log file to be written to disk after every line when set to 1. Default
|
42
|
-
# is 0, buffer flush happens after client disconnects.
|
43
|
-
#
|
44
|
-
# (technically, this is an alias to the Debug option provided for convenience)
|
45
|
-
#
|
46
|
-
# UnbufferLogs: 0
|
47
|
-
|
48
|
-
# Set to 0 to store only type, time and transfer sizes.
|
49
|
-
# 1 -> client IP and relative local path are logged too
|
50
|
-
# VerboseLog: 1
|
51
|
-
|
52
|
-
# Don't detach from the console
|
53
|
-
# ForeGround: 0
|
54
|
-
|
55
|
-
# Store the pid of the daemon process therein
|
56
|
-
# PidFile: /var/run/apt-cacher-ng/pid
|
57
|
-
|
58
|
-
# Forbid outgoing connections, work around them or respond with 503 error
|
59
|
-
# offlinemode:0
|
60
|
-
|
61
|
-
# Forbid all downloads that don't run through preconfigured backends (.where)
|
62
|
-
#ForceManaged: 0
|
63
|
-
|
64
|
-
# Days before considering an unreferenced file expired (to be deleted).
|
65
|
-
# Warning: if the value is set too low and particular index files are not
|
66
|
-
# available for some days (mirror downtime) there is a risk of deletion of
|
67
|
-
# still usefull package files.
|
68
|
-
ExTreshold: 4
|
69
|
-
|
70
|
-
# Stop expiration when a critical problem appeared. Currently only failed
|
71
|
-
# refresh of an index file is considered as critical.
|
72
|
-
#
|
73
|
-
# WARNING: don't touch this option or set to a non-zero number.
|
74
|
-
# Anything else is DANGEROUS and may cause data loss.
|
75
|
-
#
|
76
|
-
# ExAbortOnProblems: 1
|
77
|
-
|
78
|
-
# Replace some Windows/DOS-FS incompatible chars when storing
|
79
|
-
# StupidFs: 0
|
80
|
-
|
81
|
-
# Experimental feature for apt-listbugs: pass-through SOAP requests and
|
82
|
-
# responses to/from bugs.debian.org. If not set, default is true if
|
83
|
-
# ForceManaged is enabled and false otherwise.
|
84
|
-
# ForwardBtsSoap: 1
|
85
|
-
|
86
|
-
# The daemon has a small cache for DNS data, to speed up resolution. The
|
87
|
-
# expiration time of the DNS entries can be configured in seconds.
|
88
|
-
# DnsCacheSeconds: 3600
|
89
|
-
|
90
|
-
# Don't touch the following values without good consideration!
|
91
|
-
#
|
92
|
-
# Max. count of connection threads kept ready (for faster response in the
|
93
|
-
# future). Should be a sane value between 0 and average number of connections,
|
94
|
-
# and depend on the amount of spare RAM.
|
95
|
-
# MaxStandbyConThreads: 8
|
96
|
-
#
|
97
|
-
# Hard limit of active thread count for incomming connections, i.e. operation
|
98
|
-
# is refused when this value is reached (below zero = unlimited).
|
99
|
-
# MaxConThreads: -1
|
100
|
-
#
|
101
|
-
#VfilePattern = (^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$
|
102
|
-
#PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz|(Devel)?ReleaseAnnouncement(\\?.*)?)$
|
103
|
-
# Whitelist for expiration, file types not to be removed even when being
|
104
|
-
# unreferenced. Default: same as VfilePattern which is a safe bed. When and
|
105
|
-
# only when the only used mirrors are official repositories (with working
|
106
|
-
# Release files) then it might be set to something more restrictive, like
|
107
|
-
# (^|.*?/)(Release|Release\.gpg|release|meta-release|Translation[^/]*\.bz2)$
|
108
|
-
#WfilePattern = (^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$
|
109
|
-
|
110
|
-
# Higher modes only working with the debug version
|
111
|
-
# Warning, writes a lot into apt-cacher.err logfile
|
112
|
-
# Value overwrites UnbufferLogs setting (aliased)
|
113
|
-
# Debug:3
|
114
|
-
|
115
|
-
# Usually, general purpose proxies like Squid expose the IP adress of the
|
116
|
-
# client user to the remote server using the X-Forwarded-For HTTP header. This
|
117
|
-
# behaviour can be optionally turned on with the Expose-Origin option.
|
118
|
-
# ExposeOrigin: 0
|
119
|
-
|
120
|
-
# When logging the originating IP address, trust the information supplied by
|
121
|
-
# the client in the X-Forwarded-For header.
|
122
|
-
# LogSubmittedOrigin: 0
|
123
|
-
|
124
|
-
# The version string reported to the peer, to be displayed as HTTP client (and
|
125
|
-
# version) in the logs of the mirror.
|
126
|
-
# WARNING: some archives use this header to detect/guess capabilities of the
|
127
|
-
# client (i.e. redirection support) and change the behaviour accordingly, while
|
128
|
-
# ACNG might not support the expected features. Expect side effects.
|
129
|
-
#
|
130
|
-
# UserAgent: Yet Another HTTP Client/1.2.3p4
|
131
|
-
|
132
|
-
# In some cases the Import and Expiration tasks might create fresh volatile
|
133
|
-
# data for internal use by reconstructing them using patch files. This
|
134
|
-
# by-product might be recompressed with bzip2 and with some luck the resulting
|
135
|
-
# file becomes identical to the *.bz2 file on the server, usable for APT
|
136
|
-
# clients trying to fetch the full .bz2 compressed version. Injection of the
|
137
|
-
# generated files into the cache has however a disadvantage on underpowered
|
138
|
-
# servers: bzip2 compession can create high load on the server system and the
|
139
|
-
# visible download of the busy .bz2 files also becomes slower.
|
140
|
-
#
|
141
|
-
# RecompBz2: 0
|
142
|
-
|
143
|
-
# Network timeout for outgoing connections.
|
144
|
-
# NetworkTimeout: 60
|
145
|
-
|
146
|
-
# Sometimes it makes sense to not store the data in cache and just return the
|
147
|
-
# package data to client as it comes in. DontCache parameters can enable this
|
148
|
-
# behaviour for certain URL types. The tokens are extended regular expressions
|
149
|
-
# that URLs are matched against.
|
150
|
-
#
|
151
|
-
# DontCacheRequested is applied to the URL as it comes in from the client.
|
152
|
-
# Example: exclude packages built with kernel-package for x86
|
153
|
-
# DontCacheRequested: linux-.*_10\...\.Custo._i386
|
154
|
-
# Example usecase: exclude popular private IP ranges from caching
|
155
|
-
# DontCacheRequested: 192.168.0 ^10\..* 172.30
|
156
|
-
#
|
157
|
-
# DontCacheResolved is applied to URLs after mapping to the target server. If
|
158
|
-
# multiple backend servers are specified then it's only matched against the
|
159
|
-
# download link for the FIRST possible source (due to implementation limits).
|
160
|
-
# Example usecase: all Ubuntu stuff comes from a local mirror (specified as
|
161
|
-
# backend), don't cache it again:
|
162
|
-
# DontCacheResolved: ubuntumirror.local.net
|
163
|
-
#
|
164
|
-
# DontCache directive sets (overrides) both, DontCacheResolved and
|
165
|
-
# DontCacheRequested. Provided for convenience, see those directives for
|
166
|
-
# details.
|
167
|
-
#
|
168
|
-
# Default permission set of freshly created files and directories, as octal
|
169
|
-
# numbers (see chmod(1) for details).
|
170
|
-
# Can by limited by the umask value (see umask(2) for details) if it's set in
|
171
|
-
# the environment of the starting shell, e.g. in apt-cacher-ng init script or
|
172
|
-
# in its configuration file.
|
173
|
-
# DirPerms: 00755
|
174
|
-
# FilePerms: 00664
|
@@ -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
|