-
Notifications
You must be signed in to change notification settings - Fork 0
/
arch-cntlm.json
106 lines (106 loc) · 3.6 KB
/
arch-cntlm.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
{
"variables": {
"pacman_mirror": "",
"time_zone": "Europe",
"time_subzone": "Amsterdam",
"username": "user",
"password": "pass",
"proxy_username": "",
"proxy_password": "",
"proxy_workstation": "",
"proxy_host": "",
"proxy_domain": "",
"no_proxy": "localhost,127.0.0.0/8,::1,10.*,192.168.*,*.intranet,*.local"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "ArchLinux_64",
"iso_url": "images/archlinux-x86_64.iso",
"iso_checksum": "8164667750c46cf297720b21145e1e27",
"iso_checksum_type": "md5",
"cpus": 2,
"disk_size": 120000,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_port": 22,
"ssh_username": "root",
"ssh_password": "s0m3password",
"vm_name": "ArchLinux",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--nic1", "nat"],
["modifyvm", "{{.Name}}", "--cableconnected1", "on"]
],
"vboxmanage_post": [
["modifyvm", "{{.Name}}", "--clipboard", "bidirectional"],
["modifyvm", "{{.Name}}", "--firmware", "efi64"],
["modifyvm", "{{.Name}}", "--memory", "12288"],
["modifyvm", "{{.Name}}", "--vram", "256"],
["modifyvm", "{{.Name}}", "--cpus", "3"],
["modifyvm", "{{.Name}}", "--accelerate3d", "on"],
["modifyvm", "{{.Name}}", "--vrde", "off"],
["setextradata", "{{.Name}}", "GUI/ShowMiniToolBar", "no"]
],
"boot_wait": "3s",
"boot_command": [
"<enter><wait25s>",
"passwd<enter>s0m3password<enter>s0m3password<enter><wait>",
"systemctl start sshd<enter><wait>"
],
"shutdown_timeout": "120s",
"shutdown_command": "shutdown -P now"
}
],
"provisioners": [
{
"type": "file",
"source": "images/cntlm-0.92.3-4-x86_64.pkg.tar.xz",
"destination": "/tmp/cntlm-x86_64.pkg.tar.xz"
},
{
"type": "shell",
"scripts": ["resources/scripts/format.sh", "resources/scripts/cntlm.sh", "resources/scripts/base.sh", "resources/scripts/cntlm-post.sh"],
"environment_vars": [
"PACMAN_MIRROR={{user `pacman_mirror`}}",
"PROXY_USERNAME={{user `proxy_username`}}",
"PROXY_PASSWORD={{user `proxy_password`}}",
"PROXY_HOST={{user `proxy_host`}}",
"PROXY_WORKSTATION={{user `proxy_workstation`}}",
"PROXY_DOMAIN={{user `proxy_domain`}}",
"NO_PROXY={{user `no_proxy`}}",
"FTP_PROXY=http://localhost:3128/",
"HTTPS_PROXY=http://localhost:3128/",
"HTTP_PROXY=http://localhost:3128/",
"ALL_PROXY=socks://localhost:3128/",
"no_proxy={{user `no_proxy`}}",
"ftp_proxy=http://localhost:3128/",
"https_proxy=http://localhost:3128/",
"http_proxy=http://localhost:3128/",
"all_proxy=socks://localhost:3128/"
]
},
{
"type": "ansible-local",
"playbook_files": ["resources/ansible/base.yaml", "resources/ansible/cntlm.yaml"],
"inventory_file": "resources/ansible/inventory.ini",
"extra_arguments": [
"--extra-vars 'time_zone={{user `time_zone`}} time_subzone={{user `time_subzone`}} username={{user `username`}} password={{user `password`}}'"
]
},
{
"type": "file",
"source": "resources/config/boot/uefi-loader.conf",
"destination": "/mnt/boot/loader/loader.conf"
},
{
"type": "file",
"source": "resources/config/boot/uefi-entry.conf",
"destination": "/mnt/boot/loader/entries/arch.conf"
},
{
"type": "file",
"source": "resources/config/pacman/pacman.conf",
"destination": "/mnt/etc/pacman.conf"
}
]
}