mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
update docs of ucloud-uhost
This commit is contained in:
parent
95611695b1
commit
b5d2f2b83a
1 changed files with 7 additions and 4 deletions
|
|
@ -92,17 +92,20 @@ Here is a basic example for build UCloud image.
|
|||
{
|
||||
"variables": {
|
||||
"ucloud_public_key": "{{env `UCLOUD_PUBLIC_KEY`}}",
|
||||
"ucloud_private_key": "{{env `UCLOUD_PRIVATE_KEY`}}"
|
||||
"ucloud_private_key": "{{env `UCLOUD_PRIVATE_KEY`}}",
|
||||
"ucloud_project_id": "{{env `UCLOUD_PROJECT_ID`}}"
|
||||
},
|
||||
"builders": [{
|
||||
"type":"ucloud-uhost",
|
||||
"public_key":"{{user `ucloud_public_key`}}",
|
||||
"private_key":"{{user `ucloud_private_key`}}",
|
||||
"project_id": "{{user `ucloud_project_id`}}",
|
||||
"region":"cn-bj2",
|
||||
"image_name":"packer_test_{{timestamp}}",
|
||||
"source_image":"uimage-u3d50m",
|
||||
"ssh_username":"root",
|
||||
"availability_zone": "cn-bj2-02",
|
||||
"instance_type":"n-basic-2",
|
||||
"source_image_id":"uimage-f1chxn",
|
||||
"ssh_username":"root",
|
||||
"image_name":"packer_test_{{timestamp}}"
|
||||
}]
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue