File: dnfmodule.pp

package info (click to toggle)
puppet-module-puppetlabs-postgresql 10.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 940 kB
  • sloc: ruby: 731; sh: 66; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# @summary Manage the DNF module
#
# 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.
#
# @api private
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'|>
}