Puppet Class: badstation::debian::dist_upgrade

Defined in:
manifests/debian/dist_upgrade.pp

Overview

BadQuanta’s debian machines know how to upgrade themselves to latest.



3
4
5
6
7
8
9
10
11
12
13
14
# File 'manifests/debian/dist_upgrade.pp', line 3

class badstation::debian::dist_upgrade {
  include badstation::debian
  exec { 'distro upgrade':
    # This verbose command ensures everything happens
    # without prompting the user for anything.
    command => '/usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options="--force-confdef" -o Dpgk::Options="--force-confold" dist-upgrade',
    # And this makes sure no matter how long it takes, that is ok.
    timeout => 0,
    # But of course we need to ensure we know what to upgrade, so we need to have updated.
    require => Class['apt::update'],
  }
}