-
Notifications
You must be signed in to change notification settings - Fork 1
/
archlinux.json
72 lines (64 loc) · 2.39 KB
/
archlinux.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
{
"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",
"extra_arguments": ["-v"],
"playbook_file": "packer.yml",
"role_paths": [
"ansible/roles/aura",
"ansible/roles/autologin",
"ansible/roles/bspwm",
"ansible/roles/chromium",
"ansible/roles/c++_development",
"ansible/roles/development",
"ansible/roles/desktop",
"ansible/roles/docker",
"ansible/roles/dotfiles",
"ansible/roles/haskell_development",
"ansible/roles/intel",
"ansible/roles/java_development",
"ansible/roles/javascript_development",
"ansible/roles/python_development",
"ansible/roles/retroarch",
"ansible/roles/snapper",
"ansible/roles/system",
"ansible/roles/user",
"ansible/roles/vagrant",
"ansible/roles/vim_plugins",
"ansible/roles/virtualbox",
"ansible/roles/xorg"
]
}],
"post-processors": [{
"type": "vagrant",
"compression_level": 0,
"output": "build/archlinux.box",
"vagrantfile_template": "Vagrantfile"
}]
}