OpenCHAMI / configurator

An extensible tool to dynamically generate configs from SMD with Jinja 2 templating support.
MIT License
1 stars 1 forks source link

Build default plugins directly into the binary executable #21

Closed davidallendj closed 2 weeks ago

davidallendj commented 2 weeks ago

This PR changes how the default plugins are built. Instead of having each individual plugin built separately, they are now built into the executable itself. Therefore, this PR also adds a check for built-in generators first before perform a lookup with external plugins. No other changes were made to the plugin system itself, so it is still possible to create plugins externally and load them like before.

davidallendj commented 2 weeks ago

I've tested this myself, and it seems to work running something like this:

# remove any/all existing plugins built previously
rm lib/*
# run the `dnsmasq` target, but using the built-in generator instead
./configurator generate --config config.yaml --target dnsmasq -o test --cacert cacert.pem

I don't think it'll hurt if someone else wants to confirm that it works as well.