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