We have a bunch of external nodes and services that should be integrated into consul.
As I understand I can add them with the consul api
"external-node": "true" and check them with consul-esm.
Is there a way to setup all the external nodes/services on startup of consul agent (server/client?) as with internal services with config files in config.d directory?
Should there be used an extra server or the consul-servers that starts some scripts to add them with curl to the catalog?
Or adding them with
ExecStartPost= command in systemd.service for consul-server or consul-esm or …?
What is your best practice for setting this up?
Thanks in advance.