RD-681 Script to update restservice config after dropping haproxy (#2511)
RD-681 Script to update restservice config after dropping haproxy (#2511)

* RD-681 Script to update cloudify-rest.conf after dropping haproxy

This is to be run by the user (or maybe we'll make it automatic?)
after upgrading a 5.1.0 to a 5.1.1, to rewrite cloudify-rest.conf
so that it has a list of DB servers instead of using HAproxy.

To run it, `/opt/manager/env/bin/python -m manager_rest.update_rest_db_config`

* also update stage and composer configs

* format the db urls correctly

host goes here, db name goes here

* when there's nothing to do, just exit 0

that's going to be more useful
cloudify-cosmo/cloudify-manager,cloudify-cosmo/cloudify-manager,cloudify-cosmo/cloudify-manager