Closed lfarnell closed 3 years ago
sorry I'm ignorant about puppet, but can you not just set the working directory to some directory already containing puppet files, and have your manifest just reference them? If not, that seems like a workflow we should support.
As an aside, when it comes to windows, I recommend setting up an SSH server and using the ssh communicator directly. You can see how some of our community boxes do that.
I do think this is already tacitly supported and the workaround mentioned is exactly how it's done. Packer can't know what to use for remote_file grabbing so that's something you'd do in a script provisioner prior and then feed those value a la https://www.packer.io/docs/provisioners/chef-solo.html#chef-configuration.
That is to say, I think this workflow is entirely supported but Packer can't and shouldn't do much more here. We work around this with the Chef provisioner as mentioned but i don't think there is anything Packer can do reasonably here to further support that.
Hi there :wave”, I'm going to close this issue since it appears that there is no work for us to do here. But if you are still running into issues please feel free to leave a comment on the issue and we will gladly reopen.
Please note that the puppet provisioner is one of our community maintained plugins, which we have recently flagged as unmaintained. If you are interested in contributing or taking ownership of this plugin, please reach out to us at packer@hashicorp.com.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
When using the Puppet Masterless you provide the directories on the local system to upload to the machine in order to start the puppet run. On Linux based systems the default upload mechanisms will be scp over ssh which is incredibly fast. For Windows the default upload mechanism is done via winrm which is incredibly slow. Takes over 2 hours to upload around 4 mb's of files on my current system. I wanted to start on a discussion to possibly support the ability to supply directories present on the machine instead of uploading. I know this isn't a Packer problem per say due to the WinRM dependency but I believe this would make sense. Any thoughts on this approach?
This would also be applicable to the Chef solo provisioner as well.
The work around for now is to execute Puppet from a elevated powershell script and use something like git to clone a repo to the machine using the shell provisioner ahead of the Puppet run.