Hi,
Is there a way where packer can instantiate a new ssh connection for every provisioning script/section?
For example, If I have something like this below, can we have a terminate the existing connection and start a new one for the next section?
"provisioners": [
{
"type": "shell-local",
"command": "tar cf toupload/files.tar files"
},
{
"destination": "/tmp/",
"source": "./toupload",
"type": "file"
},
{
"inline": [
"cd /tmp && tar xf toupload/files.tar",
"rm toupload/files.tar"
],
"type": "shell"
}
]
}
Thanks
Sameer