Hi there! Is there an easy way to export and impo...
# fleet
b
Hi there! Is there an easy way to export and import policies without gitops? We are looking to setup a new instance of fleet, and unfortunately can’t use gitops which is making migrating our polices over difficult. I was able to find JD Strong’s article on exporting policies from last year: fleetdm.com/guides/sysadmin-diaries-exporting-policies I was able to export them to JSON and am working on converting to YAML. However I am not sure if ‘fleetctl apply’ will work with any translated yaml.
k
While I wouldn't use this in an automation, the backend API endpoint for batch applying policies should do the trick nicely here: github.com/fleetdm/fleet/blob/…/api-for-contributors.md#…
b
Awesome, thank you Kathy! This would be as part of a lift and move to a new environment so it won’t be a part of any ongoing automation.
u
Perfection.