hey everyone. we have the need to export pack con...
# fleet
d
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)?
g
The published
fleetctl
binary does this for you. https://github.com/fleetdm/fleet/releases/tag/3.6.0
Copy code
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
🙏 1
1
d
oh, nice!
z
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.
🙏 1
d
cool, thanks guys!