This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dylanmei/vbox_guest_additions
VirtualBox builders install VBoxGuestAdditions
- Loading branch information
Showing
7 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
/iso/* | ||
!/iso/README.md | ||
/output-vmware/ | ||
/output-virtualbox/ | ||
/*.box | ||
/packer_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/sh | ||
set -x | ||
|
||
wget --no-check-certificate http://pm.puppetlabs.com/puppet-enterprise/2.7.2/puppet-enterprise-2.7.2.msi | ||
msiexec /qn /i puppet-enterprise-2.7.2.msi | ||
wget --no-check-certificate http://pm.puppetlabs.com/puppet-enterprise/3.0.1/puppet-enterprise-3.0.1.msi -O puppet.msi | ||
msiexec /qn /i puppet.msi | ||
rm -rf puppet.msi | ||
cmd.exe /c setx /m PATH "%path%;C:\\Program Files (x86)\\Puppet Labs\\Puppet Enterprise\\bin" | ||
|
||
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
set -x | ||
|
||
if [ "$PACKER_BUILDER_TYPE" != "virtualbox" ]; then | ||
echo "not building virtualbox, skipping" | ||
exit | ||
fi | ||
|
||
# 7zip will allow us to extract a file from an ISO | ||
wget http://downloads.sourceforge.net/sevenzip/7z920-x64.msi | ||
msiexec /qb /i 7z920-x64.msi | ||
|
||
# There needs to be Oracle CA (Certificate Authority) certificates installed in order | ||
# to prevent user intervention popups which will undermine a silent installation. | ||
cmd /c certutil -addstore -f "TrustedPublisher" A:\\oracle-cert.cer | ||
|
||
mkdir /home/vagrant/virtualbox | ||
chown -R vagrant /home/vagrant/virtualbox | ||
|
||
# Extract and install | ||
/cygdrive/c/Program\ Files/7-Zip/7z.exe x -y C:\\cygwin\\VBoxGuestAdditions*.iso -ovirtualbox | ||
cmd.exe /c .\\virtualbox\\VBoxWindowsAdditions.exe /S | ||
|
||
rm -rf /home/vagrant/VBoxGuestAdditions.iso | ||
rm -rf /home/vagrant/virtualbox | ||
|
||
msiexec /qb /x 7z920-x64.msi | ||
rm -rf 7z920-x64.msi | ||
|
||
#cmd /c shutdown.exe /r /t 0 /d p:4:1 /c "Vagrant reboot for VBoxWindowsAdditions" | ||
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters