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)?


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

   fleetctl convert [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!


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.
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!