X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fconf.pp;h=da6d64e738ba8269a053ade34567c3d15624b61a;hb=b55dd49b17cc7f5bdc42404e98141d46fe7ddce2;hp=28502052814b73a238d7fc6704a05ae70811cd47;hpb=d261d8f11b85407c149924a8b03b0e681777f65a;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/conf.pp b/manifests/conf.pp index 2850205..da6d64e 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -1,8 +1,15 @@ define apt::conf ( - $content, + $content = undef, $ensure = present, $priority = '50', ) { + + unless $ensure == 'absent' { + unless $content { + fail('Need to pass in content parameter') + } + } + apt::setting { "conf-${name}": ensure => $ensure, priority => $priority,