-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpacker.json
37 lines (37 loc) · 991 Bytes
/
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
{
"variables": {
"build_version": "{{env `BUILD_VERSION`}}",
"build_commit_sha": "{{env `BUILD_COMMIT_SHA`}}",
"output_image": "{{env `OUTPUT_IMAGE`}}",
"cookbook_paths": "{{env `COOKBOOK_PATHS`}}",
"builders_image": "{{env `BUILDERS_IMAGE`}}"
},
"builders": [
{
"type": "lxd",
"image": "{{user `builders_image`}}",
"output_image": "{{user `output_image`}}",
"publish_properties": {
"version": "{{user `build_version`}}",
"commit_sha": "{{user `build_commit_sha`}}",
"description": "LXD image for elasticsearch"
},
"init_sleep": "5"
}
],
"provisioners": [
{
"type": "chef-solo",
"cookbook_paths": ["{{user `cookbook_paths`}}"],
"run_list": [
"recipe[elasticsearch_wrapper_cookbook::elasticsearch]",
"recipe[prometheus::elasticsearch_exporter]"
],
"json": {
"elasticsearch": {
"version": "7.5.2"
}
}
}
]
}