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