1
General Discussion / Re: Infrastructure as Code : OPNSense configuration automation
« on: September 11, 2024, 03:48:46 pm »
Greetings.
Check out the Ansible Collection I'm maintaining: https://github.com/ansibleguy/collection_opnsense
It strictly only uses the APIs that are provided and supported by the OPNSense project: https://docs.opnsense.org/development/api.html
The API for DHCP reservations is not yet implemented though.. https://github.com/ansibleguy/collection_opnsense/issues/45
If you take the risk of editing the raw XML-config - you could also checkout this Ansible Collection: https://github.com/puzzle/puzzle.opnsense (I can not recommend that)
Check out the Ansible Collection I'm maintaining: https://github.com/ansibleguy/collection_opnsense
It strictly only uses the APIs that are provided and supported by the OPNSense project: https://docs.opnsense.org/development/api.html
The API for DHCP reservations is not yet implemented though.. https://github.com/ansibleguy/collection_opnsense/issues/45
If you take the risk of editing the raw XML-config - you could also checkout this Ansible Collection: https://github.com/puzzle/puzzle.opnsense (I can not recommend that)