I’m trying to do some incus server configuration through OpenTofu. In particular, I wish to create a project, some profiles and some instances. I also want to create another project and some profiles for the instances to be user generated. On both cases, I wish to define the default profile used in that project. Since the project is just created, I should be able to setup the default profile.
Sadly, since the default profile is created automatically, OpenTofu can’t define the default profile since it’s already create.
In particular, I get the following error message:
│ Error: Failed to create profile "default"
│
│ with module.services.incus_profile.default,
│ on restricted-nodes/main.tf line 27, in resource "incus_profile" "default":
│ 27: resource "incus_profile" "default" {
│
│ Error inserting "default" into database: The profile already exists
Is it possible to set up the default profile on a newly created project through OpenTofu?