1 # @summary Specifies a custom Apt configuration file.
4 # Required unless `ensure` is set to 'absent'. Directly supplies content for the configuration file.
7 # Specifies whether the configuration file should exist. Valid options: 'present' and 'absent'.
10 # Determines the order in which Apt processes the configuration file. Files with lower priority numbers are loaded first.
11 # Valid options: a string containing an integer or an integer.
13 # @param notify_update
14 # Specifies whether to trigger an `apt-get update` run.
17 Optional[String] $content = undef,
18 Enum['present', 'absent'] $ensure = present,
19 Variant[String, Integer] $priority = 50,
20 Optional[Boolean] $notify_update = undef,
23 unless $ensure == 'absent' {
25 fail(translate('Need to pass in content parameter'))
29 $confheadertmp = epp('apt/_conf_header.epp')
30 apt::setting { "conf-${name}":
32 priority => $priority,
33 content => "${confheadertmp}${content}",
34 notify_update => $notify_update,