OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: mj84 on August 14, 2019, 12:06:28 AM

Title: Ansible role + modules for HAProxy management through API
Post by: mj84 on August 14, 2019, 12:06:28 AM
Hi folks,

I have started using OPNsense a few months ago and I'm quite impressed by almost every aspect of the product so far!
My OPNsense cluster is mainly serving as a Reverse Proxy / Loadbalancer using the HAProxy module, so I wanted to search for a way for easier configuration management.

As I am a heavy user of Ansible, I have started developing Ansible modules and a corresponding Ansible role definition for managing OPNsense's HAProxy configuration more easily.
My goal is for this project to be feature-complete, so every aspect of HAProxy on OPNsense shall be reflected in these Ansible modules.

For now, the following OPNsense HAProxy object types can be managed:

These datatypes are still to come:

I have created a GitHub repo for this project here: https://github.com/mj84/ansible-opnsense-haproxy

Any questions or input are very welcome :)

Please note that this is still under heavy development, and there is quite a bit of refactoring to be done, so variable names etc. will change for sure.

I will try to keep this post updated as I implement the remaining datatypes and update the documentation.

Cheers,
Markus
Title: Re: Ansible role + modules for HAProxy management through API
Post by: mj84 on August 16, 2019, 02:28:14 PM
I just moved the changelog to the first reply for better overview.

Changelog:

Can a mod please move this topic in the "Development and Code Review" sub-forum?
Thanks!