From 81c0ec3860445a47b02dba20ff21d663a65cdd0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 19 Feb 2019 14:54:10 +0100 Subject: [PATCH] munin: add custom behaviour for new SaaS database (#30507) --- munin/publik_count | 3 +++ 1 file changed, 3 insertions(+) diff --git a/munin/publik_count b/munin/publik_count index 9d93fce..134e968 100755 --- a/munin/publik_count +++ b/munin/publik_count @@ -41,6 +41,9 @@ for tenant in os.listdir(base_dir): for k, v in cfg['postgresql'].items(): if v and isinstance(v, basestring): psql_cfg[k] = v + if psql_cfg.get('host') == 'prod.saas.entrouvert.org.clusters.entrouvert.org': + # override for routing + psql_cfg['host'] = '10.0.0.10' pgconn = psycopg2.connect(**psql_cfg) cur = pgconn.cursor() try: