Managing DHCP Leases #44
-
I apologize if this is a dumb question. I'm just starting to learn Ansible and the world of automation possibilities there are out there. One somewhat tedious task for me is whenever I create a new LXC or VM in Proxmox, I like to assign it an IP address with a Proxmox MAC address and the host name. I'm not entirely sure if this is possible, but in my head I'm imagining that I could create a playbook where I supply the host name and it would generate a random MAC address for whatever I'm creating and then pass those variables into OPNsense and once it's finished it would go back to Proxmox and build the LXC/VM. I hope that makes sense. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Greetings! This should be doable WHEN OPNSense supports managing the DHCP-leases using an API. Currently this is not yet possible. So we cannot implement this functionality as Ansible module. I created a feature-request at the OPNSense repo - opnsense/core#7108 Also related to: #35 and #14 (comment) |
Beta Was this translation helpful? Give feedback.
-
It seems the new/full DHCP API should become available in the next few months. After that I will implement it as Ansible modules. |
Beta Was this translation helpful? Give feedback.
-
You can follow/watch this feature-request #45 for updates on this subject |
Beta Was this translation helpful? Give feedback.
-
Awesome! Thank you! |
Beta Was this translation helpful? Give feedback.
You can follow/watch this feature-request #45 for updates on this subject