On 07/10/2016 12:09, Brian Candler wrote:
I would like to be able to restore an XML config from a HTTP(S) URL at
the console prompt. Is this possible?
The use case is for a rapid rebuild of a node entirely at the console:
* Run through the installer in express mode
* Configure just vtnet0 as WAN (no additional config needed if DHCP is
available)
* Fetch XML config from URL
* Reboot
That's it. The new node is now fully prepared, with no need to
configure the LAN interface or connect to the GUI.
Other use case: I am trying to set up an automated build of a pfSense
VM. The VM builder tool I'm using (packer.io) can put the config file on
a floppy disk image, or can serve it from a local http server.
I found this:
https://doc.pfsense.org/index.php/Automatically_Restore_During_Install
which is almost what I want, except (a) packer creates a floppy device
(not usb); and (b) packer only puts files in the root directory. As far
as I can see, pfSense doesn't have a /dev/fd0 - nor does it have a
loadable module for the floppy driver. I guess it's reasonable to
minimise the image size by removing legacy hardware.
So really I need to pull the config XML via HTTP.
Regards,
Brian.
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold