Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
Added my initial customizations to template.json.
Browse files Browse the repository at this point in the history
- Removed unwanted builders (only `vmware-iso` is left).
- Increased disk size.
- Bumped darwin version number to match Yosemite.
- Increased VM's main memory size.
- Bumped VMware hardware compatibility version.
- Removed unwanted scripts.
- Removed `shrink.sh` script because it causes build failure. See
  [Issue timsutton#35](timsutton#35).
  • Loading branch information
David Johnston committed May 17, 2015
1 parent 0cad0b9 commit 08fc7f4
Showing 1 changed file with 8 additions and 69 deletions.
77 changes: 8 additions & 69 deletions packer/template.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,9 @@
{
"builders": [
{
"boot_wait": "5s",
"disk_size": 40960,
"guest_os_type": "win-8",
"iso_checksum_type": "md5",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_url": "{{user `iso_url`}}",
"shutdown_command": "echo '{{user `username`}}'|sudo -S shutdown -h now",
"ssh_port": 22,
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10000s",
"parallels_tools_flavor": "mac",
"type": "parallels-iso",
"prlctl": [
["set", "{{.Name}}", "--memsize", "2048"],
["set", "{{.Name}}", "--memquota", "512:2048"],
["set", "{{.Name}}", "--cpus", "2"],
["set", "{{.Name}}", "--distribution", "macosx"],
["set", "{{.Name}}", "--3d-accelerate", "highest"],
["set", "{{.Name}}", "--high-resolution", "off"],
["set", "{{.Name}}", "--auto-share-camera", "off"],
["set", "{{.Name}}", "--auto-share-bluetooth", "off"],
["set", "{{.Name}}", "--on-window-close", "keep-running"],
["set", "{{.Name}}", "--isolate-vm", "on"],
["set", "{{.Name}}", "--shf-host", "off"]
]
},
{
"boot_wait": "2s",
"disk_size": 20480,
"guest_os_type": "darwin12-64",
"disk_size": 40960,
"guest_os_type": "darwin14-64",
"iso_checksum_type": "md5",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_url": "{{user `iso_url`}}",
Expand All @@ -42,49 +14,20 @@
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "darwin",
"version": "11",
"type": "vmware-iso",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "2048",
"memsize": "3072",
"numvcpus": "1",
"firmware": "efi",
"keyboardAndMouseProfile": "macProfile",
"smc.present": "TRUE",
"hpet0.present": "TRUE",
"ich7m.present": "TRUE",
"ehci.present": "TRUE",
"usb.present": "TRUE"
"usb.present": "TRUE",
}
},
{
"boot_wait": "2s",
"disk_size": 20480,
"guest_additions_mode": "disable",
"guest_os_type": "MacOS109_64",
"hard_drive_interface": "sata",
"iso_checksum_type": "md5",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_interface": "sata",
"iso_url": "{{user `iso_url`}}",
"shutdown_command": "echo '{{user `username`}}'|sudo -S shutdown -h now",
"ssh_port": 22,
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--audiocontroller", "hda"],
["modifyvm", "{{.Name}}", "--boot1", "dvd"],
["modifyvm", "{{.Name}}", "--boot2", "disk"],
["modifyvm", "{{.Name}}", "--chipset", "ich9"],
["modifyvm", "{{.Name}}", "--cpuidset", "00000001", "000306a9", "00020800", "80000201", "178bfbff"],
["modifyvm", "{{.Name}}", "--firmware", "efi"],
["modifyvm", "{{.Name}}", "--hpet", "on"],
["modifyvm", "{{.Name}}", "--keyboard", "usb"],
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--mouse", "usbtablet"],
["modifyvm", "{{.Name}}", "--vram", "9"]
]
}
],
"min_packer_version": "0.7.0",
Expand All @@ -102,14 +45,10 @@
"scripts": [
"../scripts/vagrant.sh",
"../scripts/vmware.sh",
"../scripts/parallels.sh",
"../scripts/xcode-cli-tools.sh",
"../scripts/chef-omnibus.sh",
"../scripts/puppet.sh",
"../scripts/add-network-interface-detection.sh",
"../scripts/autologin.sh",
"../scripts/system-update.sh",
"../scripts/shrink.sh"
"../scripts/system-update.sh"
],
"environment_vars": [
"AUTOLOGIN={{user `autologin`}}",
Expand All @@ -131,8 +70,8 @@
"facter_version": "latest",
"hiera_version": "latest",
"install_vagrant_keys": true,
"iso_checksum": "aff67f81dfbad7afda56c423473d61a6",
"iso_url": "OSX_InstallESD_10.9.3_13D65.dmg",
"iso_checksum": "31f728264e620a8775367bddb6a98511",
"iso_url": "OSX_InstallESD_10.10.3_14D136.dmg",
"password": "vagrant",
"puppet_version": "latest",
"update_system": true,
Expand Down

0 comments on commit 08fc7f4

Please sign in to comment.