X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fconf.pp;h=c0cd55ba9e145b4b2a01437d5903ce3467851d9d;hb=a1907ff5a61d565fc27a32f1ea4d9eab60402b8a;hp=28502052814b73a238d7fc6704a05ae70811cd47;hpb=dc746734f17faa996e8441d176143945e8347330;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/conf.pp b/manifests/conf.pp index 2850205..c0cd55b 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -1,11 +1,18 @@ 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, - content => template('apt/_header.erb', 'apt/conf.erb'), + content => template('apt/_conf_header.erb', 'apt/conf.erb'), } }