-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu16.json
93 lines (93 loc) · 3 KB
/
ubuntu16.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"variables": {
"ssh_name": "vagrant",
"ssh_pass": "vagrant"
},
"builders": [
{
"name": "ubuntu16",
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"headless": false,
"guest_os_type": "Ubuntu_64",
"disk_size": 10520,
"hard_drive_interface": "sata",
"iso_url": "http://mirror.yandex.ru/ubuntu-releases/16.04.4/ubuntu-16.04.4-server-amd64.iso",
"iso_checksum": "0a03608988cfd2e50567990dc8be96fb3c501e198e2e6efcb846d89efc7b89f2",
"iso_checksum_type": "sha256",
"boot_wait": "12s",
"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_hostname=vagrant",
" netcfg/get_domain=vm",
" noapic",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu16/kickstart.cfg",
" --",
"<enter><wait>"
],
"http_directory": "http",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"512"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"shutdown_command": "echo '{{user `ssh_pass`}}' | sudo -S /sbin/halt -h -p"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/ubuntu16/bootstrap.sh"
},
{
"type": "ansible-local",
"command": "sudo -E ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook",
"playbook_file": "scripts/ubuntu16/ansible/vagrant.yml",
"inventory_file": "scripts/ubuntu16/ansible/inventory.ini",
"playbook_dir": "scripts/ubuntu16/ansible"
},
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/ubuntu16/compact.sh"
}
],
"post-processors": [
{
"output": "build/dalee-ubuntu.box",
"type": "vagrant",
"compression_level": 7
}
]
}