OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: KoS on May 02, 2020, 04:33:23 PM

Title: Restore configuration and install missing packages
Post by: KoS on May 02, 2020, 04:33:23 PM
Hi

When I restore a configuration to a "vanilla" OPNsense box, what is the best way to install any missing packages?

I see that a feature for this is in progress (https://forum.opnsense.org/index.php?topic=10068.15 and https://github.com/opnsense/core/issues/1663) but this seems to be planned for the future 20.7 release.

Kind regards
KoS
Title: Re: Restore configuration and install missing packages
Post by: franco on May 03, 2020, 05:00:48 PM
With the feature you can "automate" config.xml content, but only to the extend that you have to trigger their installation once. There's not much difference between running a script now vs. triggering a sync then.

Plugins can negatively impact the core setup, therefore providing automation and automatic installation of remote packages is a tricky thing to do because the box could break itself if not done right.

If said 20.7 feature works we can see if that would also be interesting for the GUI config restore functionality... import config, install missing plugins and reboot.

Would that be something of interest?


Cheers,
Franco
Title: Re: Restore configuration and install missing packages
Post by: KoS on May 05, 2020, 11:58:39 AM
I think for me the currently planned feature would be sufficient: Deploy vanilla box, restore configuration, select the plugins marked "missing" in the UI for installation.

Whereas I think i will anyways go the way to have my prepared disk image (as all my boxes will be using the same plugins), which would already include the plugins needed, and just import the config.xml (as discussed in https://forum.opnsense.org/index.php?topic=17058).