Commit b2d93c79 authored by Scotty Logan's avatar Scotty Logan
Browse files

Debian: marking installed packages as manual installs, even if no install was needed

parent a9521016
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -32,6 +32,12 @@ class base::packages (
  ensure_packages($only_install, {'ensure' => 'latest'})
  ensure_packages($uninstall, {'ensure' => 'absent'})

  if ($::osfamily == 'Debian') {
    exec { 'apt-mark':
      command => "/usr/bin/apt-mark manual ${installing}",
    }
  }

  if member($only_install, 'sudo') {
    file { '/etc/sudoers':
      ensure  => file,