uncloud-mravi/config.py

15 lines
511 B
Python
Raw Normal View History

2020-01-20 07:30:12 +00:00
import configparser
from etcd_wrapper import EtcdWrapper
2020-01-27 08:40:57 +00:00
from ldap_manager import LdapManager
2020-01-20 07:30:12 +00:00
config = configparser.ConfigParser()
config.read('pay.conf')
2020-02-20 08:44:30 +00:00
# Note 2020-02-15: this stuff clearly does not belong here,
# if config.py is used everywhere.
2020-01-20 07:30:12 +00:00
etcd_client = EtcdWrapper(host=config['etcd']['host'], port=config['etcd']['port'])
2020-01-27 08:40:57 +00:00
ldap_manager = LdapManager(server=config['ldap']['server'], admin_dn=config['ldap']['admin_dn'],
2020-02-20 08:44:30 +00:00
admin_password=config['ldap']['admin_password'])