define apt::sources_list ( $ensure = present, $source = false, $content = false ) { if $source { file {"/etc/apt/sources.list.d/${name}.list": ensure => $ensure, source => $source, before => Exec['apt-get_update'], notify => Exec['apt-get_update'], } } else { file {"/etc/apt/sources.list.d/${name}.list": ensure => $ensure, content => $content, before => Exec['apt-get_update'], notify => Exec['apt-get_update'], } } }