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 pathsift-aws.json
94 lines (94 loc) · 2.87 KB
/
sift-aws.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
{
"_comment": "Build with `packer build ubuntu.json`",
"builders": [
{
"type": "amazon-ebs",
"region": "us-west-2",
"source_ami": "ami-06f2f779464715dc5",
"instance_type": "m4.xlarge",
"ssh_username": "sansforensics",
"ami_name": "sift-{{isotime \"2006-01-02-1504\"}}",
"user_data_file": "aws/cloud-config.yaml",
"ami_groups": [
"all"
],
"launch_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_type": "gp2",
"volume_size": "20",
"delete_on_termination": true
}
]
}
],
"provisioners": [
{
"environment_vars": [
"DEBIAN_FRONTEND=noninteractive",
"CLEANUP_PAUSE={{user `cleanup_pause`}}",
"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`}}"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/prepare.sh",
"scripts/update.sh",
"scripts/saltstack.sh"
],
"type": "shell"
},
{
"type": "salt-masterless",
"local_state_tree": "/Users/ekristen/Development/sift/sift-saltstack",
"skip_bootstrap": true,
"custom_state": "sift.server",
"salt_call_args": "-l debug --state-output=terse"
},
{
"environment_vars": [
"CLEANUP_PAUSE={{user `cleanup_pause`}}",
"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`}}"
],
"execute_command": "echo '{{ user `ssh_password` }}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/cloud-config.sh",
"scripts/minimize.sh",
"scripts/cleanup.sh"
],
"type": "shell"
}
],
"variables": {
"headless": "true",
"sift_version": "stable",
"ssh_username": "sansforensics",
"ssh_password": "forensics",
"hostname": "siftworkstation",
"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"
}
}