cookbook 'apt-cacher-ng', '~> 0.1.0'
apt-cacher-ng (1) Versions 0.1.0 Follow1
Installs/Configures apt-cacher-ng
cookbook 'apt-cacher-ng', '~> 0.1.0', :supermarket
knife supermarket install apt-cacher-ng
knife supermarket download apt-cacher-ng
Description
Installs and configures apt-cacher-ng.
Requirements
Platforms
- Debian, Ubuntu
Tested on:
- Debian Wheezy (7.0)
Attributes
Suggested
-
node["apt-cacher-ng"][:user]
- administration panel login -
node["apt-cacher-ng"][:password]
- administration panel password
Following attribute lets us create URL mappings.
node["apt-cacher-ng"][:mappings]
Full syntax:
"apt-cacher-ng" => { :mappings => [ { :name => "debrep", :value => "file:deb_mirror*.gz /debian ; file:backends_debian", :url_files => [ { :name => "backends_debian", :content => "http://ftp.de.debian.org/debian" } ] } ] }
Chef will create an entry in acng.conf
:
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
and file backends_debian
with content http://ftp.de.debian.org/debian
.
Optional
Check templates/default/acng.conf.erb
for more details.
Usage
Server side
Add recipe[apt-cacher-ng]
to run list or create a role and change desired attributes.
name "apt-cacher-ng" description %q{ Configures apt-cacher-ng on node. } run_list( "recipe[apt-cacher-ng]" ) override_attributes( "apt-cacher-ng" => { :user => "my_user", :password => "my_password" } )
Client side
http://www.unix-ag.uni-kl.de/~bloch/acng/html/config-servquick.html#config-client
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: apt-cacher-ng/metadata.rb:1
FC065: Ensure source_url is set in metadata: apt-cacher-ng/metadata.rb:1
FC066: Ensure chef_version is set in metadata: apt-cacher-ng/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: apt-cacher-ng/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: apt-cacher-ng/metadata.rb:1
FC065: Ensure source_url is set in metadata: apt-cacher-ng/metadata.rb:1
FC066: Ensure chef_version is set in metadata: apt-cacher-ng/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: apt-cacher-ng/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
FC065: Ensure source_url is set in metadata: apt-cacher-ng/metadata.rb:1
FC066: Ensure chef_version is set in metadata: apt-cacher-ng/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: apt-cacher-ng/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number