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