forked from fisma-ready/ubuntu-lts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.json
69 lines (69 loc) · 1.73 KB
/
packer.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
{
"variables": {
"aws_access_key_id": "",
"aws_secret_key": "",
"s3_bucket": "",
"grub_passwd": ""
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key_id`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami": "ami-9eaa1cf6",
"instance_type": "m3.medium",
"ssh_username": "ubuntu",
"ami_name": "FISMA Ready Baseline Ubuntu ({{timestamp}} - Packer)",
"ami_description": "A FISMA-ready baseline Ubuntu image. Based on Canoncical Ubuntu Trusty 14.04 LTS (ami-9eaa1cf6). For more info: https://github.com/fisma-ready/ubuntu-lts",
"ami_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_type": "gp2",
"volume_size": 30,
"delete_on_termination": true
},
{
"device_name": "/dev/sdk",
"volume_size": 40,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"launch_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_type": "gp2",
"volume_size": 30,
"delete_on_termination": true
},
{
"device_name": "/dev/sdk",
"volume_size": 40,
"volume_type": "gp2",
"delete_on_termination": true
}
]
}
],
"provisioners": [
{
"type": "chef-solo",
"cookbook_paths": [
"../vendor/cookbooks"
],
"run_list": [
"packer::default"
],
"json": {
"grub_passwd": "hello"
}
},
{
"inline": [
"truncate -s0 /home/ubuntu/.ssh/authorized_keys"
],
"type": "shell"
}
]
}