
This change adds support for configuration of Apt package manager in /etc/apt/apt.conf.d/. This allows adding arbitrary global configuration options for Apt. Options can be added in different files, allowing for different filename-based priorities. CI tests and documentation are provided. Story: 2009655 Task: 43987 Change-Id: I9d7d18851359e97cd01b4c2287bf79110796b25a
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
---
|
|
###############################################################################
|
|
# Apt package manager configuration.
|
|
|
|
# Apt cache TTL in seconds. Default is 3600.
|
|
apt_cache_valid_time: 3600
|
|
|
|
# Apt proxy URL for HTTP. Default is empty (no proxy).
|
|
apt_proxy_http:
|
|
|
|
# Apt proxy URL for HTTPS. Default is {{ apt_proxy_http }}.
|
|
apt_proxy_https: "{{ apt_proxy_http }}"
|
|
|
|
# List of Apt configuration options. Each item is a dict with the following
|
|
# keys:
|
|
# * content: free-form configuration file content
|
|
# * filename: name of a file in /etc/apt/apt.conf.d/ in which to write the
|
|
# configuration
|
|
# Default is an empty list.
|
|
apt_config: []
|
|
|
|
# List of apt keys. Each item is a dict containing the following keys:
|
|
# * url: URL of key
|
|
# * filename: Name of a file in which to store the downloaded key. The
|
|
# extension should be '.asc' for ASCII-armoured keys, or '.gpg' otherwise.
|
|
# Default is an empty list.
|
|
apt_keys: []
|
|
|
|
# A list of Apt repositories. Each item is a dict with the following keys:
|
|
# * types: whitespace-separated list of repository types, e.g. deb or deb-src
|
|
# (optional, default is 'deb')
|
|
# * url: URL of the repository
|
|
# * suites: whitespace-separated list of suites, e.g. focal (optional, default
|
|
# is ansible_facts.distribution_release)
|
|
# * components: whitespace-separated list of components, e.g. main (optional,
|
|
# default is 'main')
|
|
# * signed_by: whitespace-separated list of names of GPG keyring files in
|
|
# apt_keys_path (optional, default is unset)
|
|
# * architecture: whitespace-separated list of architectures that will be used
|
|
# (optional, default is unset)
|
|
# Default is an empty list.
|
|
apt_repositories: []
|
|
|
|
# Whether to disable repositories in /etc/apt/sources.list. This may be used
|
|
# when replacing the distribution repositories via apt_repositories.
|
|
# Default is false.
|
|
apt_disable_sources_list: false
|