Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
Adds support for Ubuntu 14.04 LTS (Trusty).
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcharlton committed Apr 28, 2014
1 parent 0f6b6c7 commit b77fb03
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions ubuntu/trusty64.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"provisioners": [
{
"type": "shell",
"scripts": [
"common/postinstall.sh",
"common/vmtools.sh",
<%- if @type == "standard" -%>
"common/chef.sh",
"common/puppet.sh",
<%- else -%>
"common/<%= @type %>.sh",
<%- end -%>
"common/purge.sh"
],
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'"
}
],

"builders": [
{
"name": "trusty64-<%= @type %>",
"type": "<%= @builder %>",
<%- if @builder == "vmware-iso" -%>
"guest_os_type": "ubuntu-64",
"tools_upload_flavor": "linux",
<%- else -%>
"guest_os_type": "Ubuntu_64",
<%- end -%>
"headless": true,

"iso_url": "http://releases.ubuntu.com/trusty/ubuntu-14.04-server-amd64.iso",
"iso_checksum": "01545fa976c8367b4f0d59169ac4866c",
"iso_checksum_type": "md5",

"ssh_username": "vagrant",
"ssh_password": "vagrant",

"http_directory": "ubuntu",

"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],

"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'"
}
],

"post-processors": [
{
"type": "vagrant"
}
]
}

0 comments on commit b77fb03

Please sign in to comment.