-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbasebuild.json
92 lines (90 loc) · 2.13 KB
/
basebuild.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}"
},
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"source_ami": "ami-fce3c696",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "infrastructure_{{isotime \"2006/01/02_15h04m05s\"}}",
"ssh_pty" : true
}
],
"provisioners": [
{
"type": "file",
"source": "scripts/consul.env",
"destination": "/tmp/consul.env"
},
{
"type": "file",
"source": "scripts/consul_config.json",
"destination": "/tmp/consul_config.json"
},
{
"type": "file",
"source": "scripts/consul_upstart.conf",
"destination": "/tmp/consul_upstart.conf"
},
{
"type": "file",
"source": "scripts/nomad.env",
"destination": "/tmp/nomad.env"
},
{
"type": "file",
"source": "scripts/nomad_config.json",
"destination": "/tmp/nomad_config.json"
},
{
"type": "file",
"source": "scripts/nomad_upstart.conf",
"destination": "/tmp/nomad_upstart.conf"
},
{
"type": "file",
"source": "scripts/vault.env",
"destination": "/tmp/vault.env"
},
{
"type": "file",
"source": "scripts/vault_config.json",
"destination": "/tmp/vault_config.json"
},
{
"type": "file",
"source": "scripts/vault_upstart.conf",
"destination": "/tmp/vault_upstart.conf"
},
{
"type": "shell",
"scripts": [
"scripts/chef_install.sh",
"scripts/consul_install.sh",
"scripts/vault_install.sh",
"scripts/nomad_install.sh",
"scripts/ip_tables.sh"
]
},
{
"type": "chef-solo",
"cookbook_paths": ["cookbooks","cookbooks/berks-cookbooks"],
"run_list": ["git","java"]
},
{
"type": "file",
"source": "tests",
"destination": "/tmp"
},
{
"type": "shell",
"script": "scripts/serverspec.sh"
}
]
}