This repository has been archived by the owner on May 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
riak.json
77 lines (77 loc) · 2.33 KB
/
riak.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
{
"variables": {
"version": "0.1.0",
"riak_version": "2.2.0",
"aws_access_key": "{{ env `AWS_ACCESS_KEY_ID` }}",
"aws_secret_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",
"aws_vpc_id": "vpc-0ef60669",
"aws_subnet_id": "subnet-07237571",
"user": "{{ env `USER` }}"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{ user `aws_access_key` }}",
"secret_key": "{{ user `aws_secret_key` }}",
"region": "us-east-1",
"source_ami": "ami-b73b63a0",
"instance_type": "m4.large",
"ssh_username": "ec2-user",
"ami_name": "riak-{{ user `riak_version` }} {{ timestamp }}",
"ami_description": "Riak {{ user `riak_version` }} on Amazon Linux 2016.09.0 HVM",
"ami_regions": [
"us-east-1"
],
"ebs_optimized": true,
"enhanced_networking": true,
"associate_public_ip_address": true,
"ami_block_device_mappings": [
{
"device_name": "/dev/xvda",
"volume_type": "gp2",
"volume_size": 20,
"delete_on_termination": true
}
],
"launch_block_device_mappings": [
{
"device_name": "/dev/xvda",
"volume_type": "gp2",
"volume_size": 20,
"delete_on_termination": true
}
],
"vpc_id": "{{ user `aws_vpc_id` }}",
"subnet_id": "{{ user `aws_subnet_id` }}",
"tags": {
"Name": "riak-{{ user `riak_version` }}",
"Version": "{{ user `version` }}",
"Riak_Version": "{{ user `riak_version` }}",
"OS_Version": "Amazon Linux",
"OS_Release": "2016.09.0",
"Created_At": "{{ isotime \"2006-01-02\" }}",
"Created_By": "{{ user `user` }}"
},
"force_deregister": true,
"shutdown_behaviour": "terminate"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done",
"sudo yum update -y",
"sudo yum install -y python27-devel python27-pip libffi-devel openssl-devel gcc",
"sudo pip install -U ansible"
]
},
{
"type": "ansible-local",
"playbook_dir": "playbooks",
"playbook_file": "playbooks/riak.yml",
"inventory_file": "playbooks/inventory",
"extra_arguments": []
}
]
}