This is a minimal reproduction of an issue I am seeing when provisioning hosts with Saltstack and Packer. More specifically, running salt-call --local saltutil.sync_all
in a script uploaded by packer does not function as expected (no files/modules are sync'd).
Note that saltutil.sync_all
works fine on the new host when run manually from the shell directly.
- Download and install packer to your
$PATH
from https://www.packer.io/downloads.html