This repository should help to configure MikroTik router with existing templates.
Here is a small tool for applying file with configuration of MikroTik via ssh. Example of how to use it:
./apply.sh configFileName [email protected]
where "configFileName" - exported or prepared config for MikroTik RouterOS;
[email protected] - "admin" user and "192.168.88.1" router address