Add tips for fleet renaming and YAML configuration (#46857)
"General reference" was awkward at the top and language felt too stuffy. I like "Tips"
This commit is contained in:
@@ -6,21 +6,6 @@ Quick start: [install fleetctl](https://fleetdm.com/guides/fleetctl#installing-f
|
||||
|
||||
> Want to get hands-on? We run [free GitOps workshops globally](https://fleetdm.com/gitops-workshop) where you can get certified.
|
||||
|
||||
## General reference
|
||||
|
||||
When renaming a fleet, first update the name in the UI, then update your YAML. If you only update the YAML, the fleet will be deleted and its hosts will lose their settings because they become "Unassigned".
|
||||
|
||||
Any settings not defined in your YAML files will be reset to the default values or deleted (e.g. software packages).
|
||||
|
||||
For the GitOps API token, create a dedicated API-only user with `fleetctl user create --api-only`. These users can modify configurations via GitOps but can’t access the Fleet UI. Assign the GitOps role and set the appropriate global or fleet scope in the UI.
|
||||
|
||||
`scripts`, `configuration_profiles`, `labels`, `policies`, and `reports` support both `path` (singular) and `paths` (plural).
|
||||
|
||||
- `path` references a single file path.
|
||||
- `paths` accepts a wildcard ([glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns)) to match multiple files at once (e.g. `../lib/windows/profiles/*.xml`).
|
||||
|
||||
Paths are always relative to the file you’re editing. You can't specify both `path` and `paths` on the same entry. Filenames containing `*`, `?`, `[`, or `{` can't be referenced using `path`. If your filenames contain these characters (e.g. a Windows configuration profile named `[AllowSpotlightCollection].xml`), either rename the files, or use `paths` with a wildcard pattern like `*.xml`.
|
||||
|
||||
## labels
|
||||
|
||||
Labels can be specified in your `default.yml` and `fleets/fleet-name.yml` files using inline configuration or references to separate files in your `lib/` folder. Labels cannot be specified in `fleets/unassigned.yml`.
|
||||
@@ -1329,6 +1314,21 @@ Can only be configured for "All fleets" (`org_settings`).
|
||||
|
||||
Unlike other options, omitting `smtp_settings` or leaving it blank won't reset the values back to the default.
|
||||
|
||||
## Tips
|
||||
|
||||
When renaming a fleet, first update the name in the UI, then update your YAML. If you only update the YAML, the fleet will be deleted and its hosts will lose their settings because they become "Unassigned".
|
||||
|
||||
Any settings not defined in your YAML files will be reset to the default values or deleted (e.g. software packages).
|
||||
|
||||
For the GitOps API token, create a dedicated API-only user with `fleetctl user create --api-only`. These users can modify configurations via GitOps but can’t access the Fleet UI. Assign the GitOps role and set the appropriate global or fleet scope in the UI.
|
||||
|
||||
`scripts`, `configuration_profiles`, `labels`, `policies`, and `reports` support both `path` (singular) and `paths` (plural).
|
||||
|
||||
- `path` references a single file path.
|
||||
- `paths` accepts a wildcard ([glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns)) to match multiple files at once (e.g. `../lib/windows/profiles/*.xml`).
|
||||
|
||||
Paths are always relative to the file you’re editing. You can't specify both `path` and `paths` on the same entry. Filenames containing `*`, `?`, `[`, or `{` can't be referenced using `path`. If your filenames contain these characters (e.g. a Windows configuration profile named `[AllowSpotlightCollection].xml`), either rename the files, or use `paths` with a wildcard pattern like `*.xml`.
|
||||
|
||||
<meta name="title" value="GitOps">
|
||||
<meta name="description" value="Reference documentation for Fleet's GitOps workflow. See examples and configuration options.">
|
||||
<meta name="pageOrderInSection" value="1500">
|
||||
|
||||
Reference in New Issue
Block a user