diff --git a/packer/debian-7.3.0-amd64.json b/packer/debian-7.3.0-amd64.json new file mode 100644 index 000000000..1b7c87094 --- /dev/null +++ b/packer/debian-7.3.0-amd64.json @@ -0,0 +1,112 @@ +{ + "variables": { + "chef_version": "provisionerless", + "mirror": "http://cdimage.debian.org/debian-cd" + }, + "builders": [ + { + "type": "virtualbox-iso", + "boot_command": [ + "", + "install ", + "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian-7.3.0/preseed.cfg ", + "debian-installer=en_US ", + "auto ", + "locale=en_US ", + "kbd-chooser/method=us ", + "keyboard-configuration/xkb-keymap=us ", + "netcfg/get_hostname={{ .Name }} ", + "netcfg/get_domain=vagrantup.com ", + "fb=false ", + "debconf/frontend=noninteractive ", + "console-setup/ask_detect=false ", + "console-keymaps-at/keymap=us ", + "" + ], + "boot_wait": "10s", + "disk_size": 40960, + "guest_os_type": "Debian_64", + "http_directory": "http", + "iso_checksum": "5efcbf9f1b7b38915e86ff79be2157989e4e70e7", + "iso_checksum_type": "sha1", + "iso_url": "{{user `mirror`}}/7.3.0/amd64/iso-cd/debian-7.3.0-amd64-CD-1.iso", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_wait_timeout": "10000s", + "shutdown_command": "echo 'vagrant'|sudo -S /sbin/shutdown -hP now", + "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", + "virtualbox_version_file": ".vbox_version", + "vm_name": "packer-debian-7.3.0-amd64", + "output_directory": "packer-debian-7.3.0-amd64", + "vboxmanage": [ + [ "modifyvm", "{{.Name}}", "--memory", "384" ], + [ "modifyvm", "{{.Name}}", "--cpus", "1" ] + ] + }, + { + "type": "vmware-iso", + "boot_command": [ + "", + "install ", + "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian-7.3.0/preseed.cfg ", + "debian-installer=en_US ", + "auto ", + "locale=en_US ", + "kbd-chooser/method=us ", + "keyboard-configuration/xkb-keymap=us ", + "netcfg/get_hostname={{ .Name }} ", + "netcfg/get_domain=vagrantup.com ", + "fb=false ", + "debconf/frontend=noninteractive ", + "console-setup/ask_detect=false ", + "console-keymaps-at/keymap=us ", + "" + ], + "boot_wait": "10s", + "disk_size": 40960, + "guest_os_type": "debian5-64", + "http_directory": "http", + "iso_checksum": "5efcbf9f1b7b38915e86ff79be2157989e4e70e7", + "iso_checksum_type": "sha1", + "iso_url": "{{user `mirror`}}/7.3.0/amd64/iso-cd/debian-7.3.0-amd64-CD-1.iso", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_wait_timeout": "10000s", + "shutdown_command": "echo 'vagrant'|sudo -S /sbin/shutdown -hP now", + "tools_upload_flavor": "linux", + "vm_name": "packer-debian-7.3.0-amd64", + "output_directory": "packer-debian-7.3.0-amd64", + "vmx_data": { + "memsize": "384", + "numvcpus": "1", + "cpuid.coresPerSocket": "1" + } + } + ], + "post-processors": [ + { + "type": "vagrant", + "output": "../builds/{{.Provider}}/opscode_debian-7.3.0_chef-{{user `chef_version`}}.box" + } + ], + "provisioners": [ + { + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", + "scripts": [ + "scripts/debian/update.sh", + "scripts/common/sshd.sh", + "scripts/debian/networking.sh", + "scripts/debian/sudoers.sh", + "scripts/common/vagrant.sh", + "scripts/common/vmtools.sh", + "scripts/common/chef.sh", + "scripts/debian/cleanup.sh", + "scripts/common/minimize.sh" + ], + "type": "shell", + "environment_vars": [ "CHEF_VERSION={{user `chef_version`}}" ] + } + ] +} diff --git a/packer/debian-7.3.0-i386.json b/packer/debian-7.3.0-i386.json new file mode 100644 index 000000000..0593c5faf --- /dev/null +++ b/packer/debian-7.3.0-i386.json @@ -0,0 +1,112 @@ +{ + "variables": { + "chef_version": "provisionerless", + "mirror": "http://cdimage.debian.org/debian-cd" + }, + "builders": [ + { + "type": "virtualbox-iso", + "boot_command": [ + "", + "install ", + "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian-7.3.0/preseed.cfg ", + "debian-installer=en_US ", + "auto ", + "locale=en_US ", + "kbd-chooser/method=us ", + "keyboard-configuration/xkb-keymap=us ", + "netcfg/get_hostname={{ .Name }} ", + "netcfg/get_domain=vagrantup.com ", + "fb=false ", + "debconf/frontend=noninteractive ", + "console-setup/ask_detect=false ", + "console-keymaps-at/keymap=us ", + "" + ], + "boot_wait": "10s", + "disk_size": 40960, + "guest_os_type": "Debian", + "http_directory": "http", + "iso_checksum": "ed2d36bcf660f8f6d6ca7318f58ed2ba2f75160a", + "iso_checksum_type": "sha1", + "iso_url": "{{user `mirror`}}/7.3.0/i386/iso-cd/debian-7.3.0-i386-CD-1.iso", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_wait_timeout": "10000s", + "shutdown_command": "echo 'vagrant'|sudo -S /sbin/shutdown -hP now", + "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", + "virtualbox_version_file": ".vbox_version", + "vm_name": "packer-debian-7.3.0-i386", + "output_directory": "packer-debian-7.3.0-i386", + "vboxmanage": [ + [ "modifyvm", "{{.Name}}", "--memory", "384" ], + [ "modifyvm", "{{.Name}}", "--cpus", "1" ] + ] + }, + { + "type": "vmware-iso", + "boot_command": [ + "", + "install ", + "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian-7.3.0/preseed.cfg ", + "debian-installer=en_US ", + "auto ", + "locale=en_US ", + "kbd-chooser/method=us ", + "keyboard-configuration/xkb-keymap=us ", + "netcfg/get_hostname={{ .Name }} ", + "netcfg/get_domain=vagrantup.com ", + "fb=false ", + "debconf/frontend=noninteractive ", + "console-setup/ask_detect=false ", + "console-keymaps-at/keymap=us ", + "" + ], + "boot_wait": "10s", + "disk_size": 40960, + "guest_os_type": "debian5", + "http_directory": "http", + "iso_checksum": "ed2d36bcf660f8f6d6ca7318f58ed2ba2f75160a", + "iso_checksum_type": "sha1", + "iso_url": "{{user `mirror`}}/7.3.0/i386/iso-cd/debian-7.3.0-i386-CD-1.iso", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_wait_timeout": "10000s", + "shutdown_command": "echo 'vagrant'|sudo -S /sbin/shutdown -hP now", + "tools_upload_flavor": "linux", + "vm_name": "packer-debian-7.3.0-i386", + "output_directory": "packer-debian-7.3.0-i386", + "vmx_data": { + "memsize": "384", + "numvcpus": "1", + "cpuid.coresPerSocket": "1" + } + } + ], + "post-processors": [ + { + "type": "vagrant", + "output": "../builds/{{.Provider}}/opscode_debian-7.3.0-i386_chef-{{user `chef_version`}}.box" + } + ], + "provisioners": [ + { + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", + "scripts": [ + "scripts/debian/update.sh", + "scripts/common/sshd.sh", + "scripts/debian/networking.sh", + "scripts/debian/sudoers.sh", + "scripts/common/vagrant.sh", + "scripts/common/vmtools.sh", + "scripts/common/chef.sh", + "scripts/debian/cleanup.sh", + "scripts/common/minimize.sh" + ], + "type": "shell", + "environment_vars": [ "CHEF_VERSION={{user `chef_version`}}" ] + } + ] +} diff --git a/packer/http/debian-7.3.0/preseed.cfg b/packer/http/debian-7.3.0/preseed.cfg new file mode 100644 index 000000000..ced8699d2 --- /dev/null +++ b/packer/http/debian-7.3.0/preseed.cfg @@ -0,0 +1,48 @@ +choose-mirror-bin mirror/http/proxy string +d-i apt-setup/use_mirror boolean true +d-i base-installer/kernel/override-image string linux-server +d-i clock-setup/utc boolean true +d-i clock-setup/utc-auto boolean true +d-i finish-install/reboot_in_progress note +d-i grub-installer/only_debian boolean true +d-i grub-installer/with_other_os boolean true +d-i keymap select us +d-i mirror/country string manual +d-i mirror/http/directory string /debian +d-i mirror/http/hostname string mirrors.kernel.org +d-i mirror/http/proxy string +d-i partman-auto-lvm/guided_size string max +d-i partman-auto/choose_recipe select atomic +d-i partman-auto/method string lvm +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true +d-i partman-lvm/device_remove_lvm boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean true +d-i partman/confirm_nooverwrite boolean true +d-i partman/confirm_write_new_label boolean true +d-i passwd/root-login boolean false +d-i passwd/root-password-again password vagrant +d-i passwd/root-password password vagrant +d-i passwd/user-fullname string vagrant +d-i passwd/user-uid string 900 +d-i passwd/user-password password vagrant +d-i passwd/user-password-again password vagrant +d-i passwd/username string vagrant +d-i pkgsel/include string openssh-server sudo bzip2 acpid cryptsetup zlib1g-dev wget curl dkms make nfs-common +d-i pkgsel/install-language-support boolean false +d-i pkgsel/update-policy select unattended-upgrades +d-i pkgsel/upgrade select full-upgrade +# Prevent packaged version of VirtualBox Guest Additions being installed: +d-i preseed/early_command string sed -i \ + '/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \ + /usr/lib/pre-pkgsel.d/20install-hwpackages +d-i time/zone string UTC +d-i user-setup/allow-password-weak boolean true +d-i user-setup/encrypt-home boolean false +d-i preseed/late_command string sed -i '/^deb cdrom:/s/^/#/' /target/etc/apt/sources.list +apt-cdrom-setup apt-setup/cdrom/set-first boolean false +apt-mirror-setup apt-setup/use_mirror boolean true +popularity-contest popularity-contest/participate boolean false +tasksel tasksel/first multiselect standard, ubuntu-server