Maksim Malchuk 2ab88e6990 Use deb822 format for Apt repositories on Ubuntu and drop apt-key
Use the modern deb822 format [1] for Apt repositories on Ubuntu the
same way as in OpenStack Kolla projects, for example in Kayobe [2].
Also this change refactor usage of the deprecated [3] apt-key tool.

[1] https://manpages.ubuntu.com/manpages/jammy/en/man5/sources.list.5.html#deb822-style%20format
[2] I3f821937b0930a0ac9341178de7ae5123d82b957
[3] https://manpages.ubuntu.com/manpages/jammy/en/man8/apt-key.8.html#deprecation

Change-Id: Ic3dd0ce30a8436406a451276bbd94cb5f6f33f9d
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2024-04-18 03:10:01 +03:00

38 lines
1.2 KiB
YAML

---
# List of RPM/APT packages to install.
podman_sdk_packages:
- "python3-setuptools"
- "python3-pip"
- "{% if ansible_facts.distribution_release == 'bookworm' and virtualenv is none %}python3-podman{% endif %}"
# List of Python packages to install via Pip.
# NOTE(kevko) podman 4.7.0 is built in debian as apt package, so..
podman_sdk_pip_packages:
- "podman>=4.7.0"
# APT cache TTL in seconds.
apt_cache_valid_time: 3600
# Version of python used to execute Ansible modules.
host_python_version: "{{ ansible_facts.python.version.major }}.{{ ansible_facts.python.version.minor }}"
# Path to a virtualenv in which to install python packages. If None, a
# virtualenv will not be used.
virtualenv:
# Whether the virtualenv will inherit packages from the global site-packages
# directory. This is typically required for modules such as yum and apt which
# are not available on PyPI.
virtualenv_site_packages: True
create_kolla_user: False
kolla_user: "kolla"
# Owner of the virtualenv.
podman_sdk_virtualenv_owner: "{{ kolla_user if create_kolla_user | bool else omit }}"
# A pip constraints file to use when installing the Podman API bindings.
podman_sdk_upper_constraints_file:
podman_sdk_osbpo_apt_url: "http://osbpo.debian.net/debian"