Vagrant: provision even if upgrading Parallels guest tools isn't possible right now

refs #2896
This commit is contained in:
Alexander A. Klimov 2017-07-26 17:17:06 +02:00
parent eb343009bb
commit de59f0e837
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
# If the installed version is outdated, try to update.
# The updater seems to try to install kernel-devel-$(uname -r) which is not
# available in case of an outdated kernel version.
# If the updater fails (for this reason), we try to upgrade the kernel in the
# hope that the updater will succeed on the next reboot.
ptiagent-cmd --ver || \
ptiagent-cmd --install || \
yum update kernel -y

6
Vagrantfile vendored
View File

@ -28,8 +28,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
p.name = "Icinga Web 2 Development"
# Update Parallels Tools automatically
p.update_guest_tools = true
# Update Parallels Tools automatically ...
p.update_guest_tools = false
# ... but don't fail completely. (see the shell script)
override.vm.provision :shell, :run => "always", :path => ".puppet/manifests/parallels-upgrade-guest-tools.sh"
# Set power consumption mode to "Better Performance"
p.optimize_power_consumption = false