summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apt/manifests/dist_upgrade.pp
blob: 08de31bb4e89af1146a0b02888ac50a46eefda6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class site_apt::dist_upgrade {

  if $::apt_running == 'true' {
    fail ('apt-get is running in background - Please wait until it finishes. Exiting.')
  } else {
    exec{'initial_apt_update':
      command     => '/usr/bin/apt-get update',
      refreshonly => false,
      timeout     => 360,
    }
    exec{'initial_apt_dist_upgrade':
      command     => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold'  dist-upgrade",
      refreshonly => false,
      timeout     => 1200,
    }
  }
}