forked from mediar-solutions/cameos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
packer.json
44 lines (44 loc) · 1.06 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
{
"builders": [
{
"access_key": "",
"ami_name": "",
"instance_type": "t2.medium",
"launch_block_device_mappings": [
{
"delete_on_termination": true,
"device_name": "/dev/sda1",
"volume_size": 40,
"volume_type": "gp2"
}
],
"region": "us-east-1",
"secret_key": "",
"source_ami": "ami-d05e75b8",
"ssh_username": "ubuntu",
"subnet_id": "",
"type": "amazon-ebs",
"vpc_id": ""
}
],
"post-processors": null,
"provisioners": [
{
"execute_command": "echo 'ubuntu' | {{ .Vars }} sudo -S -E bash '{{ .Path }}'",
"inline": [
"sleep 10",
"apt-get install -y software-properties-common",
"apt-add-repository -y ppa:ansible/ansible",
"apt-get update -q",
"apt-get install -y ansible"
],
"type": "shell"
},
{
"extra_arguments": ["--extra-vars \"deploy_user=ubuntu\""],
"playbook_dir": ".",
"playbook_file": "./playbook.yml",
"type": "ansible-local"
}
]
}