Sync remote services into consul
- cleaned up removed
- updates changed
- adds new
gem install consul_syncer
syncer = ConsulSyncer.new('http://localhost:8500', logger: Logger.new(STDOUT))
syncer.sync(
[
{node: 'N', address: 'A', service: 'S', service_id: 'ID', service_address: 'A', port: 123, tags: ['abc']},
# ...
],
['managed-by-consul-syncer']
)
Michael Grosser
[email protected]
License: MIT