-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpacker-ec2.json
More file actions
51 lines (51 loc) · 1.27 KB
/
packer-ec2.json
File metadata and controls
51 lines (51 loc) · 1.27 KB
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
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_region": "us-west-2",
"aws_ami_image": "ami-d2c924b2",
"aws_instance_type": "m4.large",
"image_version" : "0.4.1"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `aws_ami_image`}}",
"instance_type": "{{user `aws_instance_type`}}",
"ssh_username": "centos",
"ami_name": "cloudurable-cassandra-{{user `image_version`}}",
"tags": {
"Name": "cloudurable-cassandra-{{user `image_version`}}",
"OS_Version": "LinuxCentOs7",
"Release": "7",
"Description": "CentOS 7 image for Cloudurable Cassandra image"
},
"user_data_file": "config/user-data.sh"
}
],
"provisioners": [
{
"type": "file",
"source": "scripts",
"destination": "/home/centos/"
},
{
"type": "file",
"source": "resources",
"destination": "/home/centos/"
},
{
"type": "shell",
"scripts": [
"scripts/000-ec2-provision.sh"
]
},
{
"type": "ansible",
"playbook_file": "playbooks/ssh-addkey.yml"
}
]
}