Puppet Class: postgresql::dnfmodule

Defined in:
manifests/dnfmodule.pp

Summary

Manage the DNF module

Overview

On EL8 and newer and Fedora DNF can manage modules. This is a method of providing multiple versions on the same OS. Only one DNF module can be active at the same time.

Parameters:

  • ensure (Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]]) (defaults to: 'installed')
  • module (String[1]) (defaults to: 'postgresql')


8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/dnfmodule.pp', line 8

class postgresql::dnfmodule (
  Variant[Enum['present', 'absent', 'purged', 'disabled', 'installed', 'latest'], String[1]] $ensure = 'installed',
  String[1] $module = 'postgresql',
) {
  package { 'postgresql dnf module':
    ensure      => $ensure,
    name        => $module,
    enable_only => true,
    provider    => 'dnfmodule',
  }

  Package['postgresql dnf module'] -> Package<|tag == 'puppetlabs-postgresql'|>
}