This repository has been archived by the owner on Jul 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ubuntu64.json
69 lines (69 loc) · 2.32 KB
/
ubuntu64.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"builders": [
{
"type": "vmware-iso",
"name": "ubuntu-{{ user `ubuntu_release` }}-server-amd64",
"guest_os_type": "ubuntu-64",
"iso_url": "http://releases.ubuntu.com/{{ user `ubuntu_release` }}/ubuntu-{{ user `ubuntu_release` }}-server-amd64.iso",
"iso_checksum": "{{ user `ubuntu_iso_sha256` }}",
"iso_checksum_type": "sha256",
"http_directory": "http",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"boot_wait": "10s",
"fusion_app_path": "{{ user `fusion_app_path` }}",
"shutdown_command": "echo vagrant | sudo -S shutdown -P now",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed_{{ user `ubuntu_release` }}.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>"
],
"tools_upload_flavor": "linux",
"version": "10"
},
{
"type": "null",
"host": "{{ user `null_host` }}",
"ssh_username": "vagrant",
"ssh_password": "vagrant"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "{{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"script": "scripts/vmware.sh"
},
{
"type": "shell",
"execute_command": "{{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"inline": [
"sleep 30",
"/usr/bin/apt-get -y install software-properties-common",
"/usr/bin/apt-add-repository -y ppa:ansible/ansible",
"/usr/bin/apt-get update",
"/usr/bin/apt-get -y install ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "../ansible/bootstrap.yml",
"playbook_dir": "../ansible",
"group_vars": "group_vars"
}
],
"post-processors": [ "vagrant" ],
"variables": {
"ubuntu_release": "14.04.1",
"ubuntu_iso_sha256": "946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2",
"fusion_app_path": "/Applications/VMWare Fusion.app",
"null_host": "127.0.0.1"
}
}