Title
#fleet
Dan Achin

Dan Achin

01/13/2021, 6:59 PM
hey everyone. we have the need to export pack config from one fleet env to another. I know Kolide had this tool - https://github.com/kolide/configimporter though as they have gotten out of the fleet biz, it's deprecated. The notes in the repo suggest using this script to convert the packs to yaml and then import them. Is this what people are doing, or does fleetdm have a tool (i couldn't find one)?
Gavin

Gavin

01/13/2021, 7:23 PM
The published
fleetctl
binary does this for you. https://github.com/fleetdm/fleet/releases/tag/3.6.0
fleetctl convert -h                                                                                                                                                   ✘ 130
NAME:
   fleetctl convert - Convert osquery packs into decomposed fleet configs

USAGE:
   fleetctl convert [options]

OPTIONS:
   --config value   Path to the Fleet config file (default: "/Users/gavin/.fleet/config") [$CONFIG]
   --context value  Name of Fleet config context to use (default: "default") [$CONTEXT]
   -f value         A file to apply [$FILENAME]
   --debug          Whether or not to enable debug logging [$DEBUG
Dan Achin

Dan Achin

01/13/2021, 7:33 PM
oh, nice!
zwass

zwass

01/13/2021, 7:42 PM
If the source configs are already in Fleet you might also just
fleetctl get
the relevant configs into files and then
fleetctl apply
those files in a new instance.
fleetctl
supports separate "contexts" so that you could have both configured at the same time.
Dan Achin

Dan Achin

01/13/2021, 7:44 PM
cool, thanks guys!