This PR addresses #6 . It was quite challenging as the Foreman API for smart class parameters and override values is not designed with Terraform in mind. It might well need further tweaks/fixes but it works for my use-case.
I've spotted an issue with this, it's incomplete as there's no support for applying classes to hosts only hostgroups. Let me close this request and I'll issue a new one with the host functionality added.
This PR addresses #6 . It was quite challenging as the Foreman API for smart class parameters and override values is not designed with Terraform in mind. It might well need further tweaks/fixes but it works for my use-case.
Feedback welcome.