This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathupdate.json
97 lines (97 loc) · 3.16 KB
/
update.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
{
"_comment": "Build with `packer build ubuntu.json`",
"builders": [
{
"type": "vmware-vmx",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"output_directory": "./_virtuals/sift-update.vmwarevm",
"shutdown_command": "echo '{{ user `ssh_password` }}'|sudo -S shutdown -P now",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_username": "{{ user `ssh_username` }}",
"ssh_wait_timeout": "10000s",
"ssh_pty": false,
"tools_upload_flavor": "linux",
"source_path": "./_virtuals/sift.vmwarevm/sift-workstation.vmx",
"vm_name": "sift-workstation",
"vmx_data": {
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}"
}
}
],
"provisioners": [
{
"environment_vars": [
"CLEANUP_PAUSE={{user `cleanup_pause`}}",
"DESKTOP={{user `desktop`}}",
"UPDATE={{user `update`}}",
"SSH_USERNAME={{user `ssh_username`}}",
"SSH_PASSWORD={{user `ssh_password`}}",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"ftp_proxy={{user `ftp_proxy`}}",
"rsync_proxy={{user `rsync_proxy`}}",
"no_proxy={{user `no_proxy`}}",
"SIFT_VERSION={{user `sift_version`}}",
"DISTRO={{user `distro`}}"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/clean-saltstack.sh",
"scripts/fix-pyopenssl.sh"
],
"type": "shell"
},
{
"type": "salt-masterless",
"local_state_tree": "/Users/ekristen/Development/sift/sift-saltstack",
"skip_bootstrap": true,
"custom_state": "sift.vm",
"salt_call_args": "--state-output=terse"
},
{
"environment_vars": [
"CLEANUP_PAUSE={{user `cleanup_pause`}}",
"DESKTOP={{user `desktop`}}",
"UPDATE={{user `update`}}",
"SSH_USERNAME={{user `ssh_username`}}",
"SSH_PASSWORD={{user `ssh_password`}}",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"ftp_proxy={{user `ftp_proxy`}}",
"rsync_proxy={{user `rsync_proxy`}}",
"no_proxy={{user `no_proxy`}}",
"SIFT_VERSION={{user `sift_version`}}",
"DISTRO={{user `distro`}}"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/clean-saltstack.sh",
"scripts/minimize.sh",
"scripts/cleanup.sh"
],
"type": "shell"
}
],
"variables": {
"headless": "false",
"sift_version": "stable",
"ssh_username": "sansforensics",
"ssh_password": "forensics",
"hostname": "siftworkstation",
"distro": "focal",
"cpus": "2",
"memory": "2048",
"cleanup_pause": "",
"locale": "en_US",
"ftp_proxy": "{{env `ftp_proxy`}}",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"no_proxy": "{{env `no_proxy`}}",
"rsync_proxy": "{{env `rsync_proxy`}}",
"version": "0.1.0",
"virtualbox_guest_os_type": "Ubuntu_64",
"vmware_guest_os_type": "ubuntu-64"
}
}