Which would cover all but last two OP’s points (SSH keys and password) … those two are only possible to automate by using (binary) backups which should not be used to transfer config between different units (even if they are same model). Or is password setting actually possible from scripts (only /export doesn’t export that detail) so the script could be hand-modified to deal with this OP’s point as well?
What about a dedicated Python script that connects to Mikrotik box through SSH and even reads config though NAPALM or alternatives :
you can copy SSH key files,
you can use different SSH logins as appropriate.
Has someone followed this route ? If positive, is it something that you recommend ?
If you have a configuration you like and /export out, I’d look at learning NetInstall. It would let you upload your .rsc and the same version packages on all units. Then if you need more in the future, you can use NetInstall to make sure you have the same version. See “Configure script” comment in https://wiki.mikrotik.com/wiki/Manual:Netinstall – also, NetInstall will cause the “reset” button on each unit to go YOUR customized bridged configuration.
Also, you mention “uploading two SSH key files to admin user”…that part is the more tricky I think. Since the export wouldn’t include those.
So for the certificates, Other might have a better idea for that…but one way is to just put the desired public key on a local web server, then include the following EXAMPLE commands at/near the bottom the export’ed script:
0. :delay 10s
/tool fetch url=“https://LOCAL_WEBSERVER/my_public_ssh_key” file=my_public_ssh_key to download the desired cert from a local web server that has the public key file available via HTTP.
“Switch_Chip_Features” (“Switch” in WinBox) - see https://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features but basically you add the VLANs you using and then set the egress/ingress tag/untag using the settings under /interface ethernet switch or Switch section in WinBox
I think for the HeX PoE, you’d want to he use the “Switch” method to set the VLAN tagging/untagging. If you use “VLAN Filtering” in the “Bridge” settings, it would likely disable hardware offload which work but performance be less than line speed on the HeX PoE. The Switch Chip setting would keep the VLAN stuff going a line speed…but yeah you read https://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features a couple times.
The Switch configuration would be export in a /export file=filename.rsc, and still be imported via NetInstall.