hashicorp / packer-plugin-salt

This Packer provisioner has been archived due to it no longer being maintained. Users are encouraged to use the shell or shell-local provisioner to run the provisioning tools made available by this plugin. If interested in maintaining this plugin please reach out to us at packer@hashicorp.com.
https://www.packer.io/docs/provisioners/salt-masterless
Mozilla Public License 2.0
2 stars 5 forks source link

Salt provisioner for Windows VM running on Linux Host fails (path separator issues) #19

Open hc-github-team-packer opened 2 years ago

hc-github-team-packer commented 2 years ago

This issue was originally opened by @RiccardoBoettcher in https://github.com/hashicorp/packer/issues/4585 and has been migrated to this repository. The original issue description is below.


When using the salt-masterless provisioner for a Windows target VM (on a linux host), the paths generated by the provisioner are not platform specific (for example mkdir command recevices /srv/salt/states, but should be \srv\salt\states.

Additionally the *unix specific commands for directory and file creation/management are used on Windows. This is another source of trouble.

Solution proposal: The problem might by the use of filepath.ToSlash() instead of filepath.FromSlash(). The later will inject the OS specific path separator character.

nywilken commented 2 years ago

With the archival of this repository all open issues will be marked as read-only. If you wish to further discuss this plugin or any of its open issues we invite you to open a discussion on the Packer community forum.

More details on the plugin archiving process for this provisioner can be found on the Plans to Archive Unmaintained Packer Provisioner Plugins blog post.