infobloxopen / terraform-provider-infoblox

Infoblox NIOS Terraform Provider
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
73 stars 81 forks source link

restart services automatically? #245

Open AxisNL opened 2 years ago

AxisNL commented 2 years ago

Hi, it looks like a great module!

We use infoblox extensively in our on-prem datacenter. We want to start using terraform to automate tasks. I've done some tests, and I'm surprised by the great performance.

Our workflow is that we create an ip allocation, then create a new vm, get the mac address, and then update the association with the allocation to update the mac address and enable dhcp, so by the time the machine has booted, it gets the correct dhcp lease.

BUT, since the DHCP configuration changed, it needs to restart before this new configuration is applied. Is there a way for the module to automatically signal the DHCP services to restart after a new association has been made? Perhaps this is something we can also configure somewhere else in the infoblox devices, but I have no idea.

Angelo.

skudriavtsev commented 2 years ago

Isn't this page https://terragrunt.gruntwork.io/docs/features/hooks/ what you are looking for?

This may be used to run a script which will use WAPI to ask NIOS to do a restart service action.

encbladexp commented 6 months ago

We are facing this issue as well, our expectation would be that we are able to create such allocation, bound to an MAC and then its applied/commited/restarted automatically.