-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Salt provisioner to allow more flexibility in passing arguments to the bootstrap script #5435
Conversation
…re flexibility in passing arguments to the bootstrap script. Updated the docs.
@cachedout, just tagging you in this since I think you are the official maintainer for the Salt provisioner. |
@timoguin I'm afraid I don't have commit privileges on this repo, if that's what you were asking. I'm happy to maintain it but @mitchellh or somebody on the core team will have to make that decision. :] As far as the PR goes, looks good to me. |
@cachedout I know you don't have write privileges. Just thought you should be IN THE KNOW (TM). :) |
Ah, OK. Cool. I appreciate the ping! |
HI @timoguin Thank you for the Pull Request, and I apologize for the delay in reviewing. After some careful thought (and going through a similar thing with the Chef provisioner), I think we should just add a I think this would solve all the problems you have identified. I am not a fan of a "custom" install type because that is ambiguous. If the user chooses to specify the Also, this will no longer merge cleanly. If you agree with the |
@sethvargo I think that makes much more sense. I've rebased my branch and will be pushing your suggested modifications shortly. |
@sethvargo Modifications made. I accidentally did a normal merge instead of a rebase when pulling upstream. Let me know if that's a problem. I can delete this PR and resubmit if necessary. |
LGTM |
Update Salt provisioner to allow more flexibility in passing arguments to the bootstrap script
This merge breaks the bootstrap process since if |
I needed the ability to specify a custom repository to install Salt from (our forked version), but the provisioner currently formulates the arguments based on the
install_type
option.This PR adds a new
install_type
calledcustom
so that the arguments aren't formatted.This let's me do something like this if I need to test a patched version of Salt:
Those options will get passed as-is to the bootstrap script, so any option that's available upstream in that script should work.