X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsetting.pp;h=59d0dd4dfe0b0eec2891c483f51526249b84f24e;hb=93f40ca8928109956f3ecebbe8077414c5b52a29;hp=bc0e15a8d52099d969c52257afb19aae2f819781;hpb=001e3a42b971b12305b50859f99d4bce3f422d46;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/setting.pp b/manifests/setting.pp index bc0e15a..59d0dd4 100644 --- a/manifests/setting.pp +++ b/manifests/setting.pp @@ -6,6 +6,7 @@ define apt::setting ( $notify_update = true, ) { + include 'apt::params' if $content and $source { fail('apt::setting cannot have both content and source') } @@ -42,8 +43,8 @@ define apt::setting ( $_priority = $priority } - $_path = $::apt::config_files[$setting_type]['path'] - $_ext = $::apt::config_files[$setting_type]['ext'] + $_path = $::apt::params::config_files[$setting_type]['path'] + $_ext = $::apt::params::config_files[$setting_type]['ext'] if $notify_update { $_notify = Exec['apt_update'] @@ -60,10 +61,4 @@ define apt::setting ( source => $source, notify => $_notify, } - - if $notify_update { - anchor { "apt::setting::${name}": - require => Class['apt::update'] - } - } }