X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fconf.pp;h=9c1a59e81cffbfae1e64772853b0872f6da6a262;hb=45341aeddd9548230c084993d6ec491475136cdc;hp=eea06861d9e3793e807a9e77d5388d0897941d3c;hpb=4815fa1f5482814e1d1a7e1626277aa35e3fc67c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/conf.pp b/manifests/conf.pp index eea0686..9c1a59e 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -1,3 +1,18 @@ +# @summary Specifies a custom Apt configuration file. +# +# @param content +# Required unless `ensure` is set to 'absent'. Directly supplies content for the configuration file. +# +# @param ensure +# Specifies whether the configuration file should exist. Valid options: 'present' and 'absent'. +# +# @param priority +# Determines the order in which Apt processes the configuration file. Files with lower priority numbers are loaded first. +# Valid options: a string containing an integer or an integer. +# +# @param notify_update +# Specifies whether to trigger an `apt-get update` run. +# define apt::conf ( Optional[String] $content = undef, Enum['present', 'absent'] $ensure = present, @@ -7,7 +22,7 @@ define apt::conf ( unless $ensure == 'absent' { unless $content { - fail('Need to pass in content parameter') + fail(translate('Need to pass in content parameter')) } }