cookbook 'apt_utils', '= 0.2.1'
apt_utils (8) Versions 0.2.1 Follow0
Installs/Configures APT
cookbook 'apt_utils', '= 0.2.1', :supermarket
knife supermarket install apt_utils
knife supermarket download apt_utils
apt_utils Cookbook
This cookbook includes apt utility (apt-cacher-ng, apt mirroring site setup and apt source configuration) recipes.
Contents
Requirements
packages
apt
-
platform_utils
>= 0.4.0
Attributes
apt_utils::default
Key | Type | Description (with examples) | Default |
---|---|---|---|
['apt_utils']['conf']['proxy']['sequence'] |
String | Sequence number of apt proxy configuration file (ver. 0.1.1 or later) | '80' |
['apt_utils']['conf']['proxy']['ftp'] |
String | Proxy setting for FTP (ver. 0.1.1 or later) | 'nil' |
['apt_utils']['conf']['proxy']['http'] |
String | Proxy setting for HTTP (ver. 0.1.1 or later) | 'nil' |
['apt_utils']['conf']['proxy']['https'] |
String | Proxy setting for HTTPS (ver. 0.1.1 or later) | 'nil' |
['apt_utils']['aptly']['apt_repo']['keyserver'] |
String | 'keys.gnupg.net' |
|
['apt_utils']['aptly']['apt_repo']['recv-keys'] |
String | '9E3E53F19C7DE460' |
|
['apt_utils']['apt-cacher-ng']['CacheDir'] |
String | path to cache directory | '/var/cache/apt-cacher-ng' |
['apt_utils']['apt-cacher-ng']['LogDir'] |
String | path to log directory. | '/var/log/apt-cacher-ng' |
['apt_utils']['apt-cacher-ng']['Port'] |
String | service port number. | '3142' |
['apt_utils']['apt-cacher-ng']['BindAddress'] |
String | service bind address |
'' (0.0.0.0) |
['apt_utils']['apt-cacher-ng']['UseWrap'] |
String | with TCP Wrappers (ver. 0.1.2 or later) |
nil ('0' (default) or '1' (on)) |
['apt_utils']['mirror']['user'] |
String | service user. | 'apt-mirror' |
['apt_utils']['mirror']['cron_period'] |
String | cron period expression. |
'#0 4 * * *' (inactive) |
['apt_utils']['mirror']['base_path'] |
String | mirroring base path. | '/var/spool/apt-mirror' |
['apt_utils']['mirror']['nthreads'] |
String | worker threads number. | '20' |
['apt_utils']['mirror']['_tilde'] |
'0' |
||
['apt_utils']['mirror']['country'] |
String | mirroring source country. | 'us' |
['apt_utils']['mirror']['distributions']['debian'] |
Hash | Debian's mirroring apt lines. | refer to attributes/default.rb
|
['apt_utils']['mirror']['distributions']['ubuntu'] |
Hash | Ubuntu's mirroring apt lines. | refer to attributes/default.rb
|
['apt_utils']['source']['apt_lines']['ubuntu'] |
Array | apt source lines. | refer to attributes/default.rb
|
Usage
Recipes
apt_utils::apt
- includes
apt::default
recipe if the platform family isdebian
.
apt_utils::aptly
- installs aptly
apt_utils::conf
- deploys apt configuration files to the
/etc/apt/apt.conf.d
directory.
apt_utils::apt-cacher-ng
{ "name":"my_node", "run_list": [ "recipe[apt_utils::apt-cacher-ng]" ] }
apt_utils::mirror
{ "name":"my_node", "run_list": [ "recipe[apt_utils::mirror]" ] }
apt_utils::source
{ "name":"my_node", "run_list": [ "recipe[apt_utils::source]" ] }
License and Authors
- Author:: whitestar at osdn.jp
Copyright 2013-2017, whitestar Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
apt >= 0.0.0 |
platform_utils >= 0.4.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
apt_utils CHANGELOG
0.2.1
- adds the
apt_utils::aptly
recipe.
0.2.0
- adds the
apt_utils::apt
recipe. - updates cookbook dependencies.
0.1.4
- update for Ubuntu 16.10
0.1.3
- update for Ubuntu 16.04
0.1.2
- adds the
['apt_utils']['apt-cacher-ng']['UseWrap']
attribute.
0.1.1
- adds APT proxy configuration recipe.
0.1.0
- Initial release of apt_utils
Collaborator Number Metric
0.2.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.1 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
License Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 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.2.1 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.2.1 failed this metric
0.2.1 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
License Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 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.2.1 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.2.1 passed this metric
0.2.1 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.2.1 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.2.1 failed this metric