def proxy_config(self): with open(self.paths.proxy_yml) as f: proxy_json = yaml.safe_load(f) proxy_config = ProxyConfig.wrap(proxy_json) proxy_config.check() return proxy_config
def _disallowed_public_variables(self): return set(get_role_defaults('postgresql_base').keys()) | \ set(get_role_defaults('pgbouncer').keys()) | \ set(ProxyConfig.get_claimed_variables())
def proxy_config(self): with open(self.paths.proxy_yml, encoding='utf-8') as f: proxy_json = from_yaml(f) proxy_config = ProxyConfig.wrap(proxy_json) proxy_config.check() return proxy_config