如何为配置者加载另一个常见脚本,例如
. scripts/common/import.sh
"provisioners": [
{
"type": "shell",
"script": "scripts/scr.sh",
}
],
答案 0 :(得分:1)
使用file
将通用脚本上传到/tmp/common.sh
:
"provisioners": [
{
"type": "file",
"source": "scripts/common.sh",
"destination": "/tmp/common.sh"
}
{
"type": "shell",
"script": "scripts/scr.sh"
}
],
编辑:更新了答案以实际回答问题。