OpenStack apt cache pinning¶
This role will set package pinning for APT packages. The role will create a preference file used to pin packages to a release, origin, or version. The pinning syntax is a simple data driven format which is a list of dictionaries. The items must contain a package entry and pinning type. Pinning types are release, origin, or version.
To clone or view the source code for this repository, visit the role repository for apt_package_pinning.
Default variables¶
apt_package_pinning_priority: 900
apt_package_pinning_file_name: "openstack_pinned_packages.pref"
Required variables¶
None
Example playbook¶
- name: Pin packages on all "hosts"
hosts: hosts
user: root
roles:
- role: "apt_package_pinning"
apt_package_pinning_file_name: "test.pref"
apt_pinned_packages:
- { package: "test-package-version", version: "9.9.9-version" }
- { package: "test-package-origin", origin: "test-origin.org" }
- { package: "test-package-release.*", release: "TestRelease" }