redash/setup/packer.json
2014-10-22 11:55:17 +03:00

50 lines
1.4 KiB
JSON

{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"redash_version": "0.4.0.b589",
"image_version": "040b589"
},
"builders": [
{
"name": "redash-us-east-1",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami": "ami-fe7cc796",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "redash-{{user `image_version`}}-us-east-1"
},
{
"name": "redash-eu-west-1",
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-west-1",
"source_ami": "ami-d2ff50a5",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "redash-{{user `image_version`}}-eu-west-1"
},
{
"type": "googlecompute",
"bucket_name": "redash-images",
"account_file": "account.json",
"client_secrets_file": "client_secret.json",
"project_id": "redash-bird-123",
"source_image": "debian-7-wheezy-v20141017",
"zone": "us-central1-a",
"image_name": "redash-{{user `image_version`}}"
}
],
"provisioners": [
{
"type": "shell",
"script": "bootstrap.sh",
"environment_vars": ["REDASH_VERSION={{user `redash_version`}}"]
}
]
}