Where to use providers like Flux-CD?

I have a tf file which uses the ESXI provider to create VMs. I then use the cloud-init within this to install the k8s cluster. I know want to install and configure Flux-CD onto the newly created VM.

Should I use the FluxCD provider on the original Terraform computer, i.e. in the same tf file, or should it be run in a new TF installation inside the newly created VM?

Sorry, for the noob question, trying to get my head around what is actually running where.