Files
gitea-pages/admin-guide/puppet/profiles/package_list.rst
2022-07-05 15:51:20 +02:00

1.5 KiB

profile::package_list

This module installs a list of packages on the node, with extra options including package removal or selection by OS.

This profile is used from Puppet:

profile::package_list{'icinga_client':
    packages => [
        'nrpe',
        'nrpe-selinux',
        'mod_gearman-static:os=redhat7',
        'mod_gearman:os!redhat7',
        'nagios-plugins-disk',
        'nagios-plugins-load',
    ],
}

Parameters

Name Type Default
packages list []

packages

This list contains the names of the packages to be installed. The names may be "extended" by tags, separated by :.

Tag Function
absent package will be removed
latest always latest version installed
os=redhat7 only install on given OS
os!redhat7 do not install on given OS

Example definitions:

java-11-openjdk
@Java Platform
java-1.8.0-openjdk:os=redhat8:latest:os!redhat9
java-1.8.0-openjdk:os=redhat7:absent