-
Notifications
You must be signed in to change notification settings - Fork 32
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
Improve windows support #145
Comments
(#145) First step of Windows support
We successfully got this up and running in our enterprise with some help from R.I.P. and Smortex. Here are the issues we encountered along the way:
4B. Currently, I have an external module populating those variables (this would obviously be done in a different way when added to the proper module):
4C. I changed the default value of plugin.choria.agent_provider.mcorpc.agent_shim to "C:/Program Files/choria/bin/choria_mcollective_agent_compat.bat" in data/os/windows.yaml in the choria Forge module. 4D. I made the following changes to manifests/config.pp in the choria Forge module:
|
I added the wix based POC into go-choria, you can now build it on a linux machine with docker:
which should eventually get you a msi, no doubt we have much to fix and for now it adds just the binary no bat files etc, but its a place to start. |
Inspired by choria-io#145 (comment) When the agent_shim filenamed ends with '.bat', install a wrapper batch file that run the actual '.rb' file.
Inspired by choria-io#145 (comment) When the agent_shim filenamed ends with '.bat', install a wrapper batch file that run the actual '.rb' file; otherwise, just install the '.rb' file and run it directly as before.
Inspired by choria-io#145 (comment) When the agent_shim filenamed ends with '.bat', install a wrapper batch file that run the actual '.rb' file; otherwise, just install the '.rb' file and run it directly as before.
Inspired by choria-io#145 (comment) When the agent_shim filename ends with '.bat', install a wrapper batch file that run the actual '.rb' file; otherwise, just install the '.rb' file and run it directly as before.
(#145) Manage a wrapper for running ruby on Windows
@abaddononion @smortex if you Additionally when run as a service on windows it should log to windows event log If you tell me how to add this thing as a service to a windows machine i could test it, but not really sure. Code appears to be roughly the right shape... |
Huge example wix installer doing many things we might want https://helgeklein.com/blog/2014/09/real-world-example-wix-msi-application-installer/ |
Inspired by choria-io#145 (comment) When the agent_shim filename ends with '.bat', install a wrapper batch file that run the actual '.rb' file; otherwise, just install the '.rb' file and run it directly as before.
Inspired by choria-io#145 (comment) When the agent_shim filename ends with '.bat', install a wrapper batch file that run the actual '.rb' file; otherwise, just install the '.rb' file and run it directly as before.
*.msi
file to install choria (POC here).PACKAGES=windows_64 rake build
will build for windows now, added in add basic windows package building go-choria#769 if paths are wrong etc pls fix there based on this POC.The text was updated successfully, but these errors were encountered: