2017-03-03 03:56:17 -05:00
|
|
|
{
|
|
|
|
"variables": {
|
|
|
|
"access_key": "{{env `ALICLOUD_ACCESS_KEY`}}",
|
|
|
|
"secret_key": "{{env `ALICLOUD_SECRET_KEY`}}"
|
|
|
|
},
|
|
|
|
"builders": [{
|
|
|
|
"type":"alicloud-ecs",
|
|
|
|
"access_key":"{{user `access_key`}}",
|
|
|
|
"secret_key":"{{user `secret_key`}}",
|
|
|
|
"region":"cn-beijing",
|
2017-07-19 23:13:59 -04:00
|
|
|
"image_name":"packer_basic",
|
2017-11-27 21:22:16 -05:00
|
|
|
"source_image":"centos_7_03_64_20G_alibase_20170818.vhd",
|
2017-03-03 03:56:17 -05:00
|
|
|
"ssh_username":"root",
|
|
|
|
"instance_type":"ecs.n1.tiny",
|
2017-08-03 21:56:04 -04:00
|
|
|
"internet_charge_type":"PayByTraffic",
|
2017-05-25 06:27:54 -04:00
|
|
|
"io_optimized":"true"
|
2017-03-03 03:56:17 -05:00
|
|
|
}],
|
|
|
|
"provisioners": [{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [
|
|
|
|
"sleep 30",
|
2017-07-19 23:13:59 -04:00
|
|
|
"yum install redis.x86_64 -y"
|
2017-03-03 03:56:17 -05:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
}
|