-
Notifications
You must be signed in to change notification settings - Fork 0
/
lamp.json
131 lines (130 loc) · 4.06 KB
/
lamp.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"_comment": "Build with `packer build -var 'version=1.1.0' -var-file='debian-12.4-amd64.json' .\\lamp.json`",
"variables": {
"vm_name": "lamp",
"cpus": "4",
"disk_size": "200000",
"memory": "4096",
"gfx_vram_size": "32",
"headless": "",
"iso_name": "debian-12.4.0-amd64-netinst.iso",
"mirror": "https://cdimage.debian.org/debian-cd",
"mirror_directory": "12.4.0/amd64/iso-cd",
"preseed": "preseed-bookworm.cfg",
"guest_os_type": "Debian_64",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_timeout": "20m",
"git_revision": "__unknown_git_revision__",
"http_proxy": "{{ env `http_proxy` }}",
"https_proxy": "{{ env `https_proxy` }}",
"no_proxy": "{{ env `no_proxy` }}",
"version": "1.1.0",
"box_tag": "manhart/lamp",
"vagrant_cloud_token": "",
"compression_level": "6",
"vagrantfile_template": "vagrant/Vagrantfile.template"
},
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<esc><wait>",
"install auto=true priority=critical ",
"url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `preseed` }} ",
"debian-installer=en_US kbd-chooser/method=de ",
"fb=false debconf/frontend=noninteractive ",
"hostname={{ .Name }} ",
"domain=local ",
"interface=auto ",
"<enter>"
],
"boot_wait": "5s",
"communicator": "ssh",
"chipset": "piix3",
"firmware": "bios",
"cpus": "{{user `cpus`}}",
"nested_virt": true,
"disk_size": "{{ user `disk_size` }}",
"memory": "{{ user `memory` }}",
"gfx_vram_size": "{{ user `gfx_vram_size` }}",
"guest_additions_mode": "upload",
"guest_additions_path": "VBoxGuestAdditions_{{ .Version }}.iso",
"virtualbox_version_file": ".vbox_version",
"guest_os_type": "{{ user `guest_os_type` }}",
"hard_drive_interface": "sata",
"iso_interface": "sata",
"iso_checksum": "file:{{ user `mirror` }}/{{ user `mirror_directory` }}/SHA256SUMS",
"iso_url": "{{ user `mirror` }}/{{ user `mirror_directory` }}/{{ user `iso_name` }}",
"post_shutdown_delay": "1m",
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S shutdown -Ph now",
"ssh_username": "{{ user `ssh_username` }}",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_timeout": "{{ user `ssh_timeout` }}",
"ssh_port": "22",
"http_directory": "http",
"vm_name": "{{ user `vm_name` }}",
"vboxmanage": [
["modifyvm", "{{ .Name }}", "--audio", "none"],
["modifyvm", "{{ .Name }}", "--nat-localhostreachable1", "on"]
]
}
],
"provisioners": [{
"type": "file",
"source": "files/debian",
"destination": "/tmp/files"
}, {
"environment_vars": [
"SSH_USERNAME={{user `ssh_username`}}",
"SSH_PASSWORD={{user `ssh_password`}}",
"VM_NAME={{user `vm_name`}}",
"INSTALL_VAGRANT_KEY=true",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"no_proxy={{user `no_proxy`}}",
"DEBIAN_FRONTEND=noninteractive"
],
"type": "shell",
"execute_command": "echo '{{user `ssh_password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/vagrant.sh",
"scripts/base.sh",
"scripts/tuning.sh",
"scripts/update.sh",
"scripts/virtualbox.sh",
"scripts/motd.sh",
"scripts/lamp.sh",
"scripts/php-mssql.sh",
"scripts/php-xdebug.sh",
"scripts/phpmyadmin.sh",
"scripts/mail.sh"
]
}, {
"environment_vars": [
"DEBIAN_FRONTEND=noninteractive"
],
"type": "shell",
"execute_command": "echo '{{user `ssh_password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/cleanup.sh"
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": "{{ user `compression_level` }}",
"output": "box/{{user `vm_name`}}-{{user `version`}}-{{.Provider}}.box",
"vagrantfile_template": "{{ user `vagrantfile_template` }}"
},
{
"type": "vagrant-cloud",
"access_token": "{{ user `vagrant_cloud_token` }}",
"box_tag": "{{ user `box_tag` }}",
"version": "{{user `version`}}"
}
]
]
}