Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dalen/puppet-apt_auto_pin
Automatically add apt pin files for packages with a version specified
https://github.com/dalen/puppet-apt_auto_pin
Last synced: 14 days ago
JSON representation
Automatically add apt pin files for packages with a version specified
- Host: GitHub
- URL: https://github.com/dalen/puppet-apt_auto_pin
- Owner: dalen
- License: apache-2.0
- Created: 2016-10-29T20:47:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-29T20:50:13.000Z (about 8 years ago)
- Last Synced: 2024-10-26T19:25:31.451Z (2 months ago)
- Language: Ruby
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apt_auto_pin
#### Table of Contents
1. [Description](#description)
1. [Usage](#usage)
1. [See also](#see-also)## Description
Create apt pin files for all packages that have a version specified so `apt-get upgrade` won't
install a different version than what is specified in puppet.## Usage
Together with the puppetlabs-apt module you can use a manifest like this:
```puppet
# Include the apt module somewhere in your code
include apt# Add the auto pin resource and make it notify the apt update
apt_auto_pin { 'packages': notify => Exec['apt_update'] }# Install packages
package { 'foo': ensure => '0.1.2' }
package { 'bar': ensure => '1.2.3' }# Ensure that packages are installed after apt-get update
Package<||> { require => Exec['apt_update'] }
````auto_apt_pin` doesn't require the puppetlabs-apt module though as it puts plain `File` resources
into `/etc/apt/conf.d`## See also
* [hashbrowncipher-package_purging](https://github.com/hashbrowncipher/puppet-package_purging)
which implements a similar thing using `dpkg hold` instead of apt pinning.