X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fconf.pp;h=b791f852190b4f5938774f1a4ae90db348a6ee39;hb=280b3a9ee4f9233026b0806bf12da378f0d95ce5;hp=97b70a1eebfaceae39f74345c842c7f172d587e7;hpb=9ad4fd682d3223fbd6be3192e5841c366c156cf6;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/conf.pp b/manifests/conf.pp index 97b70a1..b791f85 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -1,8 +1,9 @@ +# Defining apt config define apt::conf ( - $content = undef, - $ensure = present, - $priority = '50', - $notify_update = undef, + Optional[String] $content = undef, + Enum['present', 'absent'] $ensure = present, + Variant[String, Integer] $priority = 50, + Optional[Boolean] $notify_update = undef, ) { unless $ensure == 'absent' { @@ -11,10 +12,11 @@ define apt::conf ( } } + $confheadertmp = epp('apt/_conf_header.epp') apt::setting { "conf-${name}": ensure => $ensure, priority => $priority, - content => template('apt/_conf_header.erb', 'apt/conf.erb'), + content => "${confheadertmp}${content}", notify_update => $notify_update, } }