mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-28 02:34:02 -04:00
Extract plugin-specific examples to plugin directories (#10228)
* move alicloud examples from common example directory to alicloud builder * move amazon examples to amazon builder dir * move examples into ansible provisioner directory * move azure examples to builder dir * move hyperone examples into builder directory * move jdcloud builder examples into builder directory * move tencent cloud examples into the builder directory * move ucloud examples into ucloud builder directory
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"variables": {
|
||||
"ucloud_public_key": "{{env `UCLOUD_PUBLIC_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",
|
||||
"availability_zone": "cn-bj2-02",
|
||||
"instance_type": "n-basic-2",
|
||||
"source_image_id": "uimage-f1chxn",
|
||||
"ssh_username": "root",
|
||||
"image_name": "packer-test-basic-bj",
|
||||
"image_copy_to_mappings": [
|
||||
{
|
||||
"project_id": "{{user `ucloud_project_id`}}",
|
||||
"region": "cn-sh2",
|
||||
"description": "test",
|
||||
"name": "packer-test-basic-sh"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"yum install -y nginx"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user