This is the starter repository for using Fleet with a GitOps workflow.
How to set up your GitOps workflow:
-
Clone this repository.
-
If you do not have a Premium Fleet license, delete the
teams
folder. -
Make any changes to policies, queries, controls, and more defined in the files.
-
Create your own GitHub repository.
-
Add
FLEET_URL
andFLEET_API_TOKEN
secrets to your new repository's secrets. Learn how here. SetFLEET_URL
to your Fleet instance's URL (ex. https://organization.fleet.com). SetFLEET_API_TOKEN
to an API token for an API-only user in Fleet. Learn how here. -
Push your cloned and modified code to your repo.
-
In GitHub, enable the
Apply latest configuration to Fleet
GitHub Actions workflow, and run workflow manually. Now, when anyone pushes a new commit, the action will run and update Fleet.
For all configuration options, go to GitOps reference in the Fleet documentation.