fleetdm / fleet

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

Add `fleetctl convert --gitops` #19695

Open dherder opened 5 months ago

dherder commented 5 months ago

Problem

As a Fleet admin, it is not clear why I need a different format of .yml for use with gitops. I have already configured my fleet server and don't want to start from scratch with gitops, but I want to use what I have already defined in Fleet to build out my gitops strategy. This means that I need to "get" all config from Fleet with a fleetctl get command and the convert config files to a format that gitops uses.

Potential solutions

have some kind of fleetctl convert --gitops option that converts regular fleet .yml documents into gitops friendly documents.

noahtalerman commented 5 months ago

Thanks @dherder!

We could probably use this tool to accomplish "Add CIS policies using best practice GitOps": #17913

We'll weigh this request at the next feature fest on 2024-06-20.

nonpunctual commented 4 months ago

https://github.com/fleetdm/fleet/issues/20380