terraform-coop / terraform-provider-foreman

Terraform provider for Foreman
https://registry.terraform.io/providers/terraform-coop/foreman
Mozilla Public License 2.0
34 stars 32 forks source link

Add support to organization_id and location_id #7

Closed galindro closed 3 years ago

galindro commented 3 years ago

Hi, We need to define organization_id and location_id during the host creation but it seems that this provider doesn't supports it. Is it something very hard to implement?

lhw commented 3 years ago

It's actually the one feature blocking this provider from working with foreman 1.21 (#3) and newer as they are now mandatory parameters. My idea was to add the org and loc id to the provider configuration and re-use it for all resources with an optional override in each datasource/resource.

All in all it's a larger change but nothing ground breaking. I have the intention to fix this in near future.