fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.65k stars 378 forks source link

Add custom Linux distributions #18729

Open Kayanel opened 2 months ago

Kayanel commented 2 months ago

Please implement the ability to pass the value of the "HostLinuxOSs" variable from the hosts.go module as an external parameter. This is necessary to use the fleet product when working with custom Linux builds based on popular distributions.

noahtalerman commented 1 month ago

Hey @Kayanel!

Which custom Linux build, that you're trying to manage in Fleet, isn't supported?

I assume the one you're trying to manage isn't included in the HostLinuxOSs list: https://github.com/fleetdm/fleet/blob/main/server/fleet/hosts.go#L841

Kayanel commented 1 month ago

Hi @noahtalerman

I assume the one you're trying to manage isn't included in the HostLinuxOSs

That’s right, that’s why I’m asking to add the ability to specify distributions through an external variable.

Let this list remain, and the parameters passed to the variable are added to the list. (https://github.com/fleetdm/fleet/blob/main/server/fleet/hosts.go#L841)

Kayanel commented 1 month ago

Sample proposal:

var HostLinuxOSs = []string { "linux", "ubuntu", "debian", "rhel", "centos", "sles", "kali", "gentoo", "amzn", "pop", "arch", "linuxmint", "void ", "nixos", "endeavouros", "manjaro", "opensuse-leap", "opensuse-tumbleweed", EXT_VAR }

and when configuring, indicate: EXT_VAR = '"my build1", "my build2"'

noahtalerman commented 1 month ago

Thanks @Kayanel!

Heads up that this request wasn't prioritized at the most recent feature fest on 2024-05-09.

However, please feel free to open a PR w/ the above proposal!

We'll help get the PR merged.

If you're not up for opening a PR, we'll take another look during the next feature fest call.

noahtalerman commented 1 month ago

Hey @Kayanel heads up, here's a recent PR (merged) that added a new Linux distro: https://github.com/fleetdm/fleet/pull/19011