uncloud-mravi/config.py
2020-01-27 13:40:57 +05:00

11 lines
No EOL
414 B
Python

import configparser
from etcd_wrapper import EtcdWrapper
from ldap_manager import LdapManager
config = configparser.ConfigParser()
config.read('pay.conf')
etcd_client = EtcdWrapper(host=config['etcd']['host'], port=config['etcd']['port'])
ldap_manager = LdapManager(server=config['ldap']['server'], admin_dn=config['ldap']['admin_dn'],
admin_password=config['ldap']['admin_password'])