Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
- Puppet >= 4.10.0 < 8.0.0
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'maxadamo-pin_package', '0.3.1'
Learn more about managing modules with a PuppetfileDocumentation
pin_package
Table of Contents
Description
This module installs packages and forces version pinning on Debian and RedHat based distribution (Debian, Ubuntu, RedHat, CentOS...).
Pinned packages cannot be upgraded, unless they're unpinned or their version number is changed.
Notes on this version
This is a transitioning version and you can still use pin_package
or pin_package::pin
. The latter will be removed in the coming version.
Usage
Pinning
pin_package { 'apache':
ensure => '0.5-40';
}
Unpinning
pin_package { 'apache':
ensure => '0.5-40',
unpin => true;
}
Mutual dependencies handling
If you have mutual dependencies issues or if your module leverages the package installation, you can set pin_only
to true
, and you use the package
resource with require
against pin_package
define. Example:
pin_package { ['salt-minion', 'salt-common']:
ensure => $my_version,
pin_only => true;
}
package { ['salt-minion', 'salt-common']:
ensure => $my_version, # you can also use latest here, because you have already pinned
require => Pin_package['salt-minion', 'salt-common'];
}
Limitations
- only Debian/RedHat families are supported: Debian, Ubuntu, RedHat, CentOS...
- no test available
Development
Feel free to make pull requests and/or open issues on my GitHub Repository
Please make a pull request to add $facts['os']['name']
(or tell me the string to add) for any missing OS, like as Scientific Linux or Oracle Linux