Role apt_package_pinning for OpenStack-Ansible
adf63d9b9e
The 'docs' tox target executes the doc8 lint test which may result in failures when testing documentation builds, but OpenStack-CI does not execute that tox target. In order to ensure that we catch all standard documentation syntax errors and prevent them from merging, this patch includes the docs target in the 'linters' chain of tests. Fixes for any failures which result from executing this test are also included in the patch. Change-Id: Ic56a210b529a54e424944fdc79a00c9fa256bb56 |
||
---|---|---|
defaults | ||
doc | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
.gitignore | ||
.gitreview | ||
LICENSE | ||
other-requirements.txt | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Pin apt packages
- tags
-
openstack, apt, pinning, cloud, ansible
- category
-
*nix
Ansible role for pinning apt packages.
Example Ansible play
- 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" }