-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First stab at Ubuntu 15.10 templates
- Loading branch information
Showing
2 changed files
with
259 additions
and
1 deletion.
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
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,249 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"boot_command": [ | ||
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs>", | ||
"/install/vmlinuz auto", | ||
" console-setup/ask_detect=false", | ||
" console-setup/layoutcode=us", | ||
" console-setup/modelcode=pc105", | ||
" debconf/frontend=noninteractive", | ||
" debian-installer=en_US", | ||
" fb=false", | ||
" initrd=/install/initrd.gz", | ||
" kbd-chooser/method=us", | ||
" keyboard-configuration/layout=USA", | ||
" keyboard-configuration/variant=USA", | ||
" locale=en_US", | ||
" netcfg/get_domain=vm", | ||
" netcfg/get_hostname={{ user `hostname` }}", | ||
" grub-installer/bootdev=/dev/sda<wait>", | ||
" noapic", | ||
" passwd/user-fullname={{ user `ssh_fullname` }}", | ||
" passwd/user-password={{ user `ssh_password` }}", | ||
" passwd/user-password-again={{ user `ssh_password` }}", | ||
" passwd/username={{ user `ssh_username` }}", | ||
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `preseed` }}", | ||
" -- ", | ||
"<enter>" | ||
], | ||
"disk_size": "{{ user `disk_size` }}", | ||
"guest_os_type": "{{ user `vmware_guest_os_type` }}", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{ user `iso_checksum` }}", | ||
"iso_checksum_type": "{{ user `iso_checksum_type` }}", | ||
"iso_urls": [ | ||
"{{ user `iso_path` }}/{{ user `iso_name` }}", | ||
"{{ user `iso_url` }}" | ||
], | ||
"output_directory": "output-{{ user `vm_name` }}-vmware-iso", | ||
"shutdown_command": "echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now", | ||
"ssh_password": "{{ user `ssh_password` }}", | ||
"ssh_username": "{{ user `ssh_username` }}", | ||
"ssh_wait_timeout": "10000s", | ||
"tools_upload_flavor": "linux", | ||
"type": "vmware-iso", | ||
"vm_name": "{{ user `vm_name` }}", | ||
"vmx_data": { | ||
"memsize": "{{ user `memory` }}", | ||
"numvcpus": "{{ user `cpus` }}" | ||
} | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs>", | ||
"/install/vmlinuz noapic ", | ||
"file=/floppy/{{ user `preseed` }} ", | ||
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", | ||
"hostname={{ user `hostname` }} ", | ||
"grub-installer/bootdev=/dev/sda<wait> ", | ||
"fb=false debconf/frontend=noninteractive ", | ||
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ", | ||
"keyboard-configuration/variant=USA console-setup/ask_detect=false ", | ||
"passwd/user-fullname={{ user `ssh_fullname` }} ", | ||
"passwd/user-password={{ user `ssh_password` }} ", | ||
"passwd/user-password-again={{ user `ssh_password` }} ", | ||
"passwd/username={{ user `ssh_username` }} ", | ||
"initrd=/install/initrd.gz -- <enter>" | ||
], | ||
"disk_size": "{{ user `disk_size` }}", | ||
"floppy_files": [ | ||
"http/{{ user `preseed` }}" | ||
], | ||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | ||
"guest_os_type": "{{ user `virtualbox_guest_os_type` }}", | ||
"hard_drive_interface": "sata", | ||
"headless": "{{ user `headless` }}", | ||
"iso_checksum": "{{ user `iso_checksum` }}", | ||
"iso_checksum_type": "{{ user `iso_checksum_type` }}", | ||
"iso_urls": [ | ||
"{{ user `iso_path` }}/{{ user `iso_name` }}", | ||
"{{ user `iso_url` }}" | ||
], | ||
"output_directory": "output-{{ user `vm_name` }}-virtualbox-iso", | ||
"shutdown_command": "echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now", | ||
"ssh_password": "{{ user `ssh_password` }}", | ||
"ssh_username": "{{ user `ssh_username` }}", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "virtualbox-iso", | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", "{{.Name}}", "--memory", "{{ user `memory` }}" | ||
], | ||
[ | ||
"modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" | ||
] | ||
], | ||
"virtualbox_version_file": ".vbox_version", | ||
"vm_name": "{{user `vm_name`}}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | ||
"/install/vmlinuz auto", | ||
" console-setup/ask_detect=false", | ||
" console-setup/layoutcode=us", | ||
" console-setup/modelcode=pc105", | ||
" debconf/frontend=noninteractive", | ||
" debian-installer=en_US", | ||
" fb=false", | ||
" initrd=/install/initrd.gz", | ||
" kbd-chooser/method=us", | ||
" keyboard-configuration/layout=USA", | ||
" keyboard-configuration/variant=USA", | ||
" locale=en_US", | ||
" netcfg/get_domain=vm", | ||
" netcfg/get_hostname={{ user `hostname` }}", | ||
" passwd/user-fullname={{ user `ssh_fullname` }}", | ||
" passwd/user-password={{ user `ssh_password` }}", | ||
" passwd/user-password-again={{ user `ssh_password` }}", | ||
" passwd/username={{ user `ssh_username` }}", | ||
" noapic", | ||
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `preseed` }}", | ||
" -- ", | ||
"<enter>" | ||
], | ||
"disk_size": "{{ user `disk_size` }}", | ||
"guest_os_type": "{{ user `parallels_guest_os_type` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{ user `iso_checksum` }}", | ||
"iso_checksum_type": "{{ user `iso_checksum_type` }}", | ||
"iso_urls": [ | ||
"{{ user `iso_path` }}/{{ user `iso_name` }}", | ||
"{{ user `iso_url` }}" | ||
], | ||
"output_directory": "output-{{ user `vm_name` }}-parallels-iso", | ||
"parallels_tools_flavor": "lin", | ||
"prlctl": [ | ||
[ | ||
"set", "{{.Name}}", "--memsize", "{{ user `memory` }}" | ||
], | ||
[ | ||
"set", "{{.Name}}", "--cpus", "{{ user `cpus` }}" | ||
] | ||
], | ||
"prlctl_version_file": ".prlctl_version", | ||
"shutdown_command": "echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now", | ||
"ssh_password": "{{ user `ssh_password` }}", | ||
"ssh_username": "{{ user `ssh_username` }}", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "parallels-iso", | ||
"vm_name": "{{ user `vm_name` }}" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"keep_input_artifact": false, | ||
"output": "box/{{.Provider}}/{{user `vm_name`}}-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box", | ||
"type": "vagrant", | ||
"vagrantfile_template": "{{ user `vagrantfile_template` }}" | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"environment_vars": [ | ||
"CM={{user `cm`}}", | ||
"CM_VERSION={{user `cm_version`}}", | ||
"CLEANUP_PAUSE={{user `cleanup_pause`}}", | ||
"DESKTOP={{user `desktop`}}", | ||
"DOCKER={{user `docker`}}", | ||
"UPDATE={{user `update`}}", | ||
"INSTALL_VAGRANT_KEY={{user `install_vagrant_key`}}", | ||
"SSH_USERNAME={{user `ssh_username`}}", | ||
"SSH_PASSWORD={{user `ssh_password`}}", | ||
"http_proxy={{user `http_proxy`}}", | ||
"https_proxy={{user `https_proxy`}}", | ||
"ftp_proxy={{user `ftp_proxy`}}", | ||
"rsync_proxy={{user `rsync_proxy`}}", | ||
"no_proxy={{user `no_proxy`}}" | ||
], | ||
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", | ||
"scripts": [ | ||
"script/update.sh", | ||
"script/desktop.sh", | ||
"script/vagrant.sh", | ||
"script/sshd.sh", | ||
"script/vmware.sh", | ||
"script/virtualbox.sh", | ||
"script/parallels.sh", | ||
"script/docker.sh", | ||
"script/cmtool.sh", | ||
"script/motd.sh", | ||
"custom-script.sh", | ||
"script/minimize.sh", | ||
"script/cleanup.sh" | ||
], | ||
"type": "shell" | ||
} | ||
], | ||
"variables": { | ||
"cleanup_pause": "", | ||
"cm": "nocm", | ||
"cm_version": "", | ||
"cpus": "1", | ||
"custom_script": ".", | ||
"desktop": "false", | ||
"disk_size": "65536", | ||
"docker": "false", | ||
"ftp_proxy": "{{env `ftp_proxy`}}", | ||
"headless": "", | ||
"http_proxy": "{{env `http_proxy`}}", | ||
"https_proxy": "{{env `https_proxy`}}", | ||
"install_vagrant_key": "true", | ||
"iso_checksum": "478446f33e336a98d5868c0b353d0d347e8a7262", | ||
"iso_checksum_type": "sha1", | ||
"iso_name": "ubuntu-15.10-server-amd64.iso", | ||
"iso_path": "/Volumes/Thunder/software/ubuntu", | ||
"iso_url": "http://releases.ubuntu.com/15.10/ubuntu-15.10-server-amd64.iso", | ||
"memory": "512", | ||
"no_proxy": "{{env `no_proxy`}}", | ||
"parallels_guest_os_type": "ubuntu", | ||
"preseed" : "preseed-1504.cfg", | ||
"rsync_proxy": "{{env `rsync_proxy`}}", | ||
"hostname": "vagrant", | ||
"ssh_fullname": "vagrant", | ||
"ssh_password": "vagrant", | ||
"ssh_username": "vagrant", | ||
"update": "false", | ||
"vagrantfile_template": "", | ||
"version": "0.1.0", | ||
"virtualbox_guest_os_type": "Ubuntu_64", | ||
"vm_name": "ubuntu1510", | ||
"vmware_guest_os_type": "ubuntu-64" | ||
} | ||
} | ||
|