2019-10-07 17:13:42 +00:00
|
|
|
from etcd3_wrapper import Etcd3Wrapper
|
2019-11-27 08:04:57 +00:00
|
|
|
import decouple
|
2019-10-07 17:13:42 +00:00
|
|
|
|
2019-11-27 10:30:42 +00:00
|
|
|
etcd_wrapper_args = ()
|
|
|
|
etcd_wrapper_kwargs = {
|
|
|
|
'host': decouple.config('ETCD_URL', 'localhost'),
|
|
|
|
'port': decouple.config('ETCD_PORT', 2379),
|
|
|
|
'ca_cert': decouple.config('CA_CERT', None),
|
|
|
|
'cert_cert': decouple.config('CERT_CERT', None),
|
|
|
|
'cert_key': decouple.config('CERT_KEY', None)
|
|
|
|
}
|
2019-11-27 08:04:57 +00:00
|
|
|
|
2019-11-27 10:30:42 +00:00
|
|
|
etcd_client = Etcd3Wrapper(*etcd_wrapper_args, **etcd_wrapper_kwargs)
|