OPNsense Forum

English Forums => Development and Code Review => Topic started by: ndejong on June 30, 2018, 06:41:17 pm

Title: a Terraform module for OPNsense on Digital Ocean
Post by: ndejong on June 30, 2018, 06:41:17 pm
Hi,

Anyone wanting to get OPNsense running on Digital Ocean will find this Terraform module helpful:-
 - https://github.com/verbnetworks/terraform-digitalocean-opnsense-image
 - https://registry.terraform.io/modules/verbnetworks/opnsense-image/digitalocean

The module is designed to create a Digital Ocean Droplet snapshot-image that can subsequently be used to start an OPNsense instance within Digital Ocean.

Of particular note is the support for the Digital Ocean (OpenStack based) approach to providing Droplets their seed data, including public-IPv4, public-IPv6, private-IPv4, root-sshkey and user-data which is all be parsed and injected into the OPNsense /conf/config.xml file at boot time. This allows the resulting OPNsense image to be used in Terraform devops automation situations.

By adding appropriate User Data to a Droplet when establishing it becomes possible to fetch an external confg.xml which will be loaded at startup thus making devops automated OPNsense in Digital Ocean possible.

Love to hear feedback, suggestions and the like.

... currently working on AWS and Azure implementations next with a view to making automated multi-cloud private network infrastructure possible.

N
Title: Re: a Terraform module for OPNsense on Digital Ocean
Post by: ittchmh on August 07, 2019, 10:15:17 am
Nice, I will try
Thank you for work!