This repository has been archived by the owner on May 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
packer.json
112 lines (112 loc) · 3.52 KB
/
packer.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
{
"variables": {
"guest_additions_url": "https://download.virtualbox.org/virtualbox/6.0.14/VBoxGuestAdditions_6.0.14.iso",
"guest_additions_sha256": "cb82f43a71f91a50b97aa27063c5c8743772a623eb0073ab8daf77e840d73eb1",
"version": "1.6.0"
},
"push": {
"name": "joomlatools/box",
"vcs": true
},
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 25000,
"guest_os_type": "Ubuntu_64",
"guest_additions_url": "{{user `guest_additions_url`}}",
"guest_additions_sha256": "{{user `guest_additions_sha256`}}",
"http_directory": "packer/http",
"iso_checksum": "7d8e0055d663bffa27c1718685085626cb59346e7626ba3d3f476322271f573e",
"iso_checksum_type": "sha256",
"iso_url": "http://cdimage.ubuntu.com/ubuntu/releases/bionic/release/ubuntu-18.04.3-server-amd64.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"scripts": [
"packer/scripts/base.sh",
"packer/scripts/vagrant.sh",
"packer/scripts/virtualbox.sh",
"packer/scripts/puppet.sh"
]
},
{
"type": "file",
"source": "puppet/environments",
"destination": "/tmp/"
},
{
"type": "puppet-masterless",
"manifest_file": "puppet/environments/box/manifests",
"module_paths": ["puppet/modules", "puppet/environments/box/modules"],
"extra_arguments": ["--environmentpath=/tmp/environments/", "--environment=box"],
"hiera_config_path": "puppet/environments/box/hiera.yaml",
"facter": {
"fqdn": "joomlatools.box"
}
},
{
"type": "shell",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"scripts": [
"packer/scripts/update.sh",
"packer/scripts/cleanup.sh",
"packer/scripts/zerodisk.sh"
]
},
{
"type": "file",
"source": "tests",
"destination": "/tmp"
},
{
"type": "shell",
"script": "packer/scripts/serverspec.sh"
}
],
"post-processors": [
[{
"type": "vagrant",
"output": "joomlatools-{{user `version`}}.box",
"vagrantfile_template": "Vagrantfile.pkg",
"keep_input_artifact": false
}]
]
}