-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharchlinux-base.json
More file actions
45 lines (36 loc) · 1.42 KB
/
archlinux-base.json
File metadata and controls
45 lines (36 loc) · 1.42 KB
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
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "ArchLinux_64",
"iso_url": "http://ftp.iinet.net.au/pub/archlinux/iso/2019.12.01/archlinux-2019.12.01-x86_64.iso",
"iso_checksum": "43e20aad6309485e4ffdc3cb7ba82c7ca4940687",
"iso_checksum_type": "sha1",
"headless": false,
"http_directory": "http",
"guest_additions_mode": "disable",
"boot_wait": "5s",
"boot_command": [
"<enter><wait10><wait10><wait10><enter>",
"curl -sfSLO http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh<enter><wait>",
"curl -sfSLO http://{{ .HTTPIP }}:{{ .HTTPPort }}/chroot.sh<enter><wait>",
"curl -sfSLO http://{{ .HTTPIP }}:{{ .HTTPPort }}/packer.sh<enter><wait>",
"curl -sfSLO http://{{ .HTTPIP }}:{{ .HTTPPort }}/partition.sh<enter><wait>",
"chmod +x *.sh<enter>",
"./install.sh<enter>"
],
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "20m",
"shutdown_command": "sudo systemctl poweroff"
}],
"provisioners": [{
"type": "shell",
"inline": ["sudo pacman --sync --noconfirm --needed ansible"]
}, {
"type": "ansible-local",
"inventory_file": "ansible/inventory",
"extra_arguments": ["-v"],
"playbook_file": "packer-base.yml",
"playbook_dir": "ansible"
}]
}