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

  # facter returns 'true' as string
  # lint:ignore:quoted_booleans
  if $::apt_running == 'true' {
  # lint:endignore
    fail ('apt-get is running in background - Please wait until it finishes. Exiting.')
  } else {
    exec{'initial_apt_dist_upgrade':
      command     => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold'  dist-upgrade",
      refreshonly => false,
      timeout     => 1200,
      require     => Exec['apt_updated']
    }
  }
}