- file { "sources.list":
- path => "${apt::params::root}/sources.list",
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
- content => $purge_sources_list ? {
- false => undef,
- true => "# Repos managed by puppet.\n",
- },
+ $root = $apt::params::root
+ $apt_conf_d = $apt::params::apt_conf_d
+ $sources_list_d = $apt::params::sources_list_d
+ $preferences_d = $apt::params::preferences_d
+ $provider = $apt::params::provider
+
+ file { 'sources.list':
+ ensure => present,
+ path => "${root}/sources.list",
+ owner => root,
+ group => root,
+ mode => '0644',
+ content => $sources_list_content,
+ notify => Exec['apt_update'],