* Ensure to run a 'full-upgrade' once repository added.

This commit is contained in:
gardouille 2015-12-11 09:07:01 +01:00
parent 79a56a7662
commit 6575e2d3e1
2 changed files with 8 additions and 2 deletions

View File

@ -11,3 +11,4 @@
* Doesn't need a specific kernel like ProxmoxV3. There is only a 4.x kernel.
* The PVE Kernel is newer than the default Debian one, so doesn't need grub-set-default anymore.
* Remove OpenVZ configuration for the Hypervisor.
* Ensure to run a 'full-upgrade' once repository added.

View File

@ -30,6 +30,11 @@ class proxmox4::hypervisor::install {
}
else { # If the system run on a standard Debian Kernel
# Ensure to upgrade all packages to latest version from Proxmox repository
exec { 'Upgrade package from PVE repo':
command => 'aptitude -y full-upgrade',
} ->
# To avoid unwanted reboot (kernel update for example), the PVE kernel is
# installed only if the system run on a standard Debian.
# You will need to update your PVE kernel manually.
@ -38,8 +43,8 @@ class proxmox4::hypervisor::install {
notify { 'Please REBOOT':
message => "Need to REBOOT the system on the new PVE kernel (${proxmox4::hypervisor::kernel_pkg_name}) ...",
loglevel => warning,
}
->
} ->
package { $proxmox4::hypervisor::kernel_pkg_name:
ensure => $proxmox4::hypervisor::ve_pkg_ensure,
notify => Exec['update_grub'],