Your question is Automated Configuration Management with IaC. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You're standardizing how infrastructure and system configuration are managed so manual changes do not accumulate over time. You want a repeatable way to provision hosts, apply network and service settings, and detect when deployed state no longer matches what is defined in code.
How would you use Terraform, Chef, Puppet, Ansible, or Salt for automated configuration management?