summaryrefslogtreecommitdiff
path: root/manifests/dist_upgrade.pp
blob: ed25b0baafed0ad1d2e8542e9c51022780fcebac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class apt::dist_upgrade {

  if $apt::disable_update == false {
    include apt::update
  }

  exec { 'apt_dist-upgrade':
    command     => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
    refreshonly => true,
    require     => $apt::disable_update ? {
      true    => undef,
      default => Exec['apt_updated'],
    }
  }

}