35 lines
679 B
JSON
35 lines
679 B
JSON
|
{
|
||
|
"builders": [
|
||
|
{
|
||
|
"type": "jdcloud",
|
||
|
"image_id": "img-h8ly274zg9",
|
||
|
"access_key": "<Your access_key>",
|
||
|
"secret_key": "<Your secret_key>",
|
||
|
"region_id": "cn-north-1",
|
||
|
"az": "cn-north-1c",
|
||
|
"instance_name": "created_by_packer",
|
||
|
"instance_type": "g.n2.medium",
|
||
|
"ssh_password":"/Users/mac/.ssh/id_rsa",
|
||
|
"ssh_keypair_name":"created_by_xiaohan",
|
||
|
"image_name": "packerImage",
|
||
|
|
||
|
|
||
|
|
||
|
"communicator":"ssh",
|
||
|
"ssh_username": "root",
|
||
|
"ssh_timeout" : "60s"
|
||
|
}
|
||
|
],
|
||
|
|
||
|
"provisioners": [
|
||
|
{
|
||
|
"type": "shell",
|
||
|
"inline": [
|
||
|
"sleep 3",
|
||
|
"echo 123",
|
||
|
"pwd"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|