-
Notifications
You must be signed in to change notification settings - Fork 21
/
chronograf.json
46 lines (46 loc) · 1.52 KB
/
chronograf.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
{
"min_packer_version": "1.5.4",
"variables": {
"region": "us-east1",
"zone": "us-east1-a",
"chronograf_version": "1.7.8",
"project_id": "{{env `GOOGLE_CLOUD_PROJECT`}}",
"service_account_json": "{{env `GOOGLE_CREDENTIALS`}}"
},
"builders": [{
"name": "gcp",
"type": "googlecompute",
"project_id": "{{user `project_id`}}",
"machine_type": "n1-standard-1",
"source_image_family": "ubuntu-1804-lts",
"region": "{{user `region`}}",
"zone": "{{user `zone`}}",
"image_description": "An Ubuntu 18.04 AMI that has Chronograf installed.",
"image_name": "chronograf-ubuntu-{{uuid | clean_resource_name}}",
"image_family": "chronograf-ubuntu-example",
"account_file": "{{ user `service_account_json`}}",
"ssh_username": "ubuntu"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sudo mkdir -p /opt/gruntwork",
"git clone --branch v0.1.2 https://github.com/gruntwork-io/bash-commons.git /tmp/bash-commons",
"sudo cp -r /tmp/bash-commons/modules/bash-commons/src /opt/gruntwork/bash-commons",
"mkdir -p /tmp/terraform-google-influx/modules"
]
}, {
"type": "file",
"source": "{{template_dir}}/config",
"destination": "/tmp"
}, {
"type": "file",
"source": "{{template_dir}}/../../../modules/",
"destination": "/tmp/terraform-google-influx/modules"
}, {
"type": "shell",
"inline": [
"/tmp/terraform-google-influx/modules/install-chronograf/install-chronograf --version {{user `chronograf_version`}}"
]
}]
}