FOGProject / fogproject

An open source computer cloning & management system
https://fogproject.org
GNU General Public License v3.0
1.12k stars 223 forks source link

Add Chocolately package manager #356

Open gplamondon opened 4 years ago

gplamondon commented 4 years ago

It would be great if we have the option of Chocolatey package manager in the dropdown list for snapin templates. https://chocolatey.org/

Example: choco install SkypeForBusiness 12130.20272 -y -r --no-progress

what I have been doing is adding the snapin by creating a snapin with a batch file.

SkypeForBusiness.bat:


:: Place holder file for FOG to install via choco installer.
:: when creating a Snapin FOG requires a file to be uploaded.
echo Package installer started...
choco install SkypeForBusiness -y -r --no-progress
mastacontrola commented 4 years ago

This is something I'd love to be able to see done as well. Right now this would require significant changes to the snapin code and the client.

The server side logic is really simple, but I'm not very good with the C# code base.

Sebastian-Roth commented 4 years ago

@gplamondon @mastacontrola Surely something we can add some point in the future. I have worked on the client code a fair bit over the last months and weeks. Shouldn't be too hard. But this won't be before the next major FOG release.

darksidemilk commented 4 years ago

I currently have a workaround I do for this. All my snapins are actually chocolatey packages and the methodology might be able to be implemented as a workaround.

I use the powershell template with a universal script, I have it set up with some encrypted key/pwfile powershell stuff for using securely saved admin credentials to install in the background or in the foreground if the admin is already logged in. In situations where the admin is already logged in (firstlogoncommands/oobe phase of sysprep for example) the encrypted credential stuff isn't needed.

Point is, if there's enough interest I could publish how to make this infrastructure and maybe a snapin template using it could be made. Or perhaps I could also make a much simpler example, as all some people may need (depending on how they have chocolatey and or admin permissions of users set up) is a powershell script that is something like

param($pkg)
choco install $pkg -y

And then you just add the pkg name in the snapin parameters.

vrelk commented 4 years ago

Should probably have something for upgrading in there too. It's probably not the best idea, but the upgrade command will install it if it isn't installed already, while the install command won't upgrade if it's already installed.

spychodelics commented 2 years ago

Hi there, i deploy the images with chocolatey preinstalled in the golden image and manage my deployed clients afterwards with puppet bolt.

https://puppet.com/docs/bolt/latest/bolt.html

https://ospassist.puppet.com/hc/en-us/articles/360040849894-Deploy-packages-across-your-Windows-estate-with-Bolt-and-Chocolatey-