[service] a service.deploy can return some information
As a user I'd like to use the monitoring service and know where the different parts have been deployed. For instance I'd like to easily get the influxdb connection string to allow a client to access the metrics from my experimental code (currently one has to forge by himself). I also would like to run some command on the nodes where things has been deployed by having an explicit key to use.
Idea:
m = Monitoring(...)
info, roles = m.deploy()
In the above info is a key/value of information (e.g service.monitoring.influxdb.host
, service.monitoring.influxdb.port
...), the roles could be a key/value whose keys are like service.monitoring.influxdb
and values are the associated list of hosts.