使用Packer与Google Cloud并使用Debian Build获得SSH连接问题
这是我的Packer文件。 { "variables": { "account_json": "{{env `packer_account_json`}}" }, "builders": [ { "type": "googlecompute", "account_file": "{{user `account_json`}}", "project_id": "united-course-124523", "source_image": "debian-8-jessie-v20160711", "zone": "us-central1-a", "instance_name": "hub-{{timestamp}}", "image_name": "hub-{{uuid}}", "image_description": "Elasticsearch 2.3.4." } ], "provisioners": [ { "type": "shell", "inline": [ "sleep 20", "echo \"slept for 20 seconds.\"" ] }, { "type": "file", "source": "../scripts/install-elastic.sh", "destination": "../scripts/install-elastic.sh" }, […]