-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpacker.json
More file actions
32 lines (32 loc) · 856 Bytes
/
packer.json
File metadata and controls
32 lines (32 loc) · 856 Bytes
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
{
"variables": {
"build_commit_sha": "{{env `BUILD_COMMIT_SHA`}}",
"build_version": "{{env `BUILD_VERSION`}}",
"builders_image": "{{env `BUILDERS_IMAGE`}}",
"cookbook_paths": "{{env `COOKBOOK_PATHS`}}",
"output_image": "{{env `OUTPUT_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 consul"
},
"init_sleep": "5"
}
],
"provisioners": [
{
"type": "chef-solo",
"cookbook_paths": ["{{user `cookbook_paths`}}"],
"run_list": [
"recipe[consul::default]",
"recipe[prometheus::consul_exporter]"
]
}
]
}