Cleanup packer configuration

This commit is contained in:
Arik Fraimovich 2018-09-27 21:47:45 +03:00
parent 5e70f9c04a
commit 551b0222c4

View File

@ -1,7 +1,5 @@
{ {
"variables": { "variables": {
"aws_access_key": "",
"aws_secret_key": "",
"redash_version": "", "redash_version": "",
"image_version": "" "image_version": ""
}, },
@ -9,19 +7,16 @@
{ {
"name": "redash-us-east-1", "name": "redash-us-east-1",
"type": "amazon-ebs", "type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1", "region": "us-east-1",
"source_ami": "ami-4dd2575b", "source_ami": "ami-0ac019f4fcb7cb7e6",
"instance_type": "t2.micro", "instance_type": "t2.micro",
"ssh_username": "ubuntu", "ssh_username": "ubuntu",
"ami_name": "redash-{{user `image_version`}}-us-east-1" "ami_name": "redash-{{user `image_version`}}-us-east-1"
}, },
{ {
"type": "googlecompute", "type": "googlecompute",
"account_file": "account.json",
"project_id": "redash-bird-123", "project_id": "redash-bird-123",
"source_image_family": "ubuntu-1604-lts", "source_image_family": "ubuntu-1804-lts",
"zone": "us-central1-a", "zone": "us-central1-a",
"ssh_username": "arik" "ssh_username": "arik"
} }
@ -35,7 +30,7 @@
}, },
{ {
"type": "shell", "type": "shell",
"script": "ubuntu/bootstrap.sh", "script": "setup.sh",
"execute_command": "{{ .Vars }} sudo -E -S bash '{{ .Path }}'", "execute_command": "{{ .Vars }} sudo -E -S bash '{{ .Path }}'",
"environment_vars": ["REDASH_VERSION={{user `redash_version`}}"] "environment_vars": ["REDASH_VERSION={{user `redash_version`}}"]
}, },