class site_apt { class { 'apt': custom_key_dir => 'puppet:///modules/site_apt/keys' } # enable http://deb.leap.se debian package repository include site_apt::leap_repo apt::apt_conf { '90disable-pdiffs': content => 'Acquire::PDiffs "false";'; } include ::apt::unattended_upgrades apt::sources_list { 'secondary.list.disabled': content => template('site_apt/secondary.list'); } apt::preferences_snippet { 'facter': release => "${::lsbdistcodename}-backports", priority => 999 } # All packages should be installed _after_ refresh_apt is called, # which does an apt-get update. # There is one exception: # The creation of sources.list depends on the lsb package File['/etc/apt/preferences'] -> Exec['refresh_apt'] -> Package <| ( title != 'lsb' ) |> }