Foreman Provisioning OPNSense/PFSense - any suggestions?

long shot request, but I wonder if anyone in the community has got foreman provisioning OPNSense with foreman, it’s a pretty black box install, and mostly seems to be BSD answer file and then restore a config from a text file (to deploy consistently) I’ve provisioned BSD hosts in the past with foreman, but this is pretty niche.

Any one had any success ? or thoughts, appreciate it’s edge case

From what I can see in GitHub - punktDe/vagrant-opnsense: Bootstrap an OPNsense development environment in Vagrant you are right, it needs a BSD installation and then the install script of OPNSense needs to be downloaded and executed, then the config.xml needs to be adjusted.

So for me this sound smore like do the BSD installation with Foreman and then the OPNSense with configuration management, so I found the Ansible collection ansibleguy.opnsense which only covers post tasks but not installation, so very likely you just need a playbook for the installation (or a simple shell script).

1 Like

that seems to be the best way, I was looking if I could boot the OPNSense image and push in some sort of answer file post boot to configure it