Hi <#C01DXJL16D8|fleet>, I'm trying to setup Fleet...
# fleet
j
Hi #fleet, I'm trying to setup FleetDM using Ansible and Docker (Compose). So far it's working well and I get a running FleetDM instance, but I'm having problems with the initial configuration. After the initial setup is completed and all containers are running, FleetDM will redirect to
/setup
to create a new user. I would like to automate that step and dug into the REST API documentation, but the
/api/v1/fleet/users/admin
endpoint will only let me create/modify users after I authenticate. Which I can't, because I don't have that initial user yet. This feels like a chicken and egg problem. Is there some way around that?
k
Hi @Jörg Sachse! You can also use
fleetctl
to do the initial setup, which could be automated with a simple script.
j
Hi @Kathy Satterlee, thank you for pointing me to that part of the documentation. I have been playing around with
fleetctl
quite a bit, but I didn't notice that it can be used for the initial setup as well. That completely solves the issue! 👍ty