Version information
released Dec 4th 2020
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 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
- Ubuntu ,
Start using this module
Add this module to your Puppetfile:
mod 'pest-packages', '1.0.3'
Learn more about managing modules with a PuppetfileDocumentation
pest/packages — version 1.0.3 Dec 4th 2020
puppet-packages
Module to handle package management via hiera
Usage
in a manifest:
include packages::manage
or
class { 'packages::manage': }
in a hiera yaml:
classes:
- packages::manage
Configuration
This module exposes several configurable options. While you can pass these options through a manifest, this module works best when pulling data out of hiera.
From a manifest:
class { 'packages::manage':
install_packages => [''], # an array of packages which should have
# state => installed. Bulk install, default
# provider.
latest_packages => [''], # an array of packages which should have
# state => latest. Bulk install, default
# provider
remove_packages => [''], # an array of packages which should have
# state => purged. Bulk remove.
install_version => [''], # a hashed array of packages to manage,
# see hiera details. Respects standard
# 'package' options.
}
From hiera:
packages::install:
- nano
- curl
- unzip
packages::latest:
- puppet
- hiera
packages::versioned:
nethack-console:
ensure: purged
- note, when using 'packages::versioned', you may pass any standard packaging parameter to the entry. for example:
packages::versioned
gear:
ensure: latest
provider: pip
packages::versioned:
deep_merge:
ensure: latest
provider: gem
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v1.0.3
- Extended test suite to puppet 5 and puppet 6
- Updated metadata.json
- Added .sync.yml for
pdk update
v1.0.2
Added
- Type hints to all parameters
- Added purge feature
- PDK compatibility
v1.0.0
Changed
- Replaced
hiera_array
andhiera_hash
by module hiera lookup (puppet 4.10+ required)
Added
init.pp
added to collectpackages::*
variables- Hiera yaml to define module lookups
MIT License Copyright (c) 2020 Puppet Enterprise Support Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.