X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fconf.pp;h=28502052814b73a238d7fc6704a05ae70811cd47;hb=41a2725683bbaacfc827f8ebfe1fc1044d51df80;hp=fa7f97d435f6001c3bea06cf2f50e921f2a3f4fa;hpb=17b9ac3c7f0aaf7322eae634fb0f35eb27bf872c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/conf.pp b/manifests/conf.pp index fa7f97d..2850205 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -1,17 +1,11 @@ define apt::conf ( + $content, + $ensure = present, $priority = '50', - $content ) { - - include apt::params - - $apt_conf_d = $apt::params::apt_conf_d - - file { "${apt_conf_d}/${priority}${name}": - ensure => file, - content => $content, - owner => root, - group => root, - mode => '0644', + apt::setting { "conf-${name}": + ensure => $ensure, + priority => $priority, + content => template('apt/_header.erb', 'apt/conf.erb'), } }