-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.json
44 lines (44 loc) · 1.04 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
{
"variables": {
"vpc_id": null,
"subnet_id": null,
"base_ami_id": null,
"region": "eu-west-1"
},
"builders": [
{
"type": "amazon-ebs",
"region": "{{user `region`}}",
"source_ami": "{{user `base_ami_id`}}",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "scr {{timestamp}}",
"vpc_id": "{{user `vpc_id`}}",
"subnet_id": "{{user `subnet_id`}}",
"associate_public_ip_address": true,
"ami_description": "Simple Container Runtime AMI",
"ami_regions": [
"eu-west-1",
"eu-central-1"
]
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo pip install ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "src/main/ansible/playbooks/main.yml",
"role_paths": [
"src/main/ansible/roles/basics",
"src/main/ansible/roles/cloudwatch-logs",
"src/main/ansible/roles/docker-compose",
"src/main/ansible/roles/scr"
]
}
]
}