2018-12-20 11:09:44 -05:00
|
|
|
{
|
|
|
|
"variables": {
|
|
|
|
"secret_id": "{{env `TENCENTCLOUD_ACCESS_KEY`}}",
|
|
|
|
"secret_key": "{{env `TENCENTCLOUD_SECRET_KEY`}}"
|
|
|
|
},
|
2019-10-21 01:21:21 -04:00
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"type": "tencentcloud-cvm",
|
|
|
|
"secret_id": "{{user `secret_id`}}",
|
|
|
|
"secret_key": "{{user `secret_key`}}",
|
|
|
|
"region": "ap-guangzhou",
|
|
|
|
"zone": "ap-guangzhou-4",
|
|
|
|
"instance_type": "S4.SMALL1",
|
|
|
|
"source_image_id": "img-oikl1tzv",
|
|
|
|
"ssh_username": "root",
|
|
|
|
"image_name": "PackerTest",
|
|
|
|
"disk_type": "CLOUD_PREMIUM",
|
|
|
|
"packer_debug": true,
|
|
|
|
"associate_public_ip_address": true,
|
|
|
|
"run_tags": {
|
|
|
|
"good": "luck"
|
|
|
|
}
|
2019-06-28 11:18:41 -04:00
|
|
|
}
|
2019-10-21 01:21:21 -04:00
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"sleep 30",
|
|
|
|
"yum install redis.x86_64 -y"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|