GitOps reference (#38862)

- Ran into this when dogfooding
This commit is contained in:
Noah Talerman
2026-01-27 16:09:26 -06:00
committed by GitHub
parent 43055d4158
commit 658926aacc
+2 -4
View File
@@ -2,16 +2,14 @@
Use Fleet's best practice GitOps workflow to manage your computers as code. To learn how to set up a GitOps workflow see the [Fleet GitOps repo](https://github.com/fleetdm/fleet-gitops).
Fleet GitOps workflow is designed to be applied to all teams at once. However, the flow can be customized to only modify specific teams and/or global settings. Note that when running the `fleetctl gitops` action for all teams, files are expected to use the `.yml` extension. Files ending in `.yaml` will not be evaluated unless passed in individually as arguments to `fleetctl gitops -f`.
Users with global admin permissions may apply GitOps configurations globally and to all teams, while users whose permissions are scoped to specific teams may apply settings to only the teams they have permission to modify.
> When changing a team's name, you must first change it in the UI and then update your YAML. If you only update your YAML, the team will be deleted and the team's hosts will lose their settings. This happens because the hosts are transferred to "No team".
Any settings not defined in your YAML files (including missing or misspelled keys) will be reset to the default values, which may include deleting assets such as software packages.
The following are the required keys in the `default.yml` and any `teams/team-name.yml` files:
```yaml
name: # Only teams/team-name.yml. To edit a team's name, change `name` but don't change the filename.
name: # Only teams/team-name.yml.
policies:
queries:
agent_options: