Remove antietcd_ca parameter from mon/antietcd_adapter - it is client_ca
This commit is contained in:
@@ -51,7 +51,7 @@ class AntiEtcdAdapter
|
|||||||
port: selected[0].port,
|
port: selected[0].port,
|
||||||
cert: config.antietcd_cert,
|
cert: config.antietcd_cert,
|
||||||
key: config.antietcd_key,
|
key: config.antietcd_key,
|
||||||
ca: config.antietcd_ca,
|
ca: config.client_ca,
|
||||||
data: config.antietcd_data_file || ((config.antietcd_data_dir || '/var/lib/vitastor') + '/mon_'+selected[0].port+'.json.gz'),
|
data: config.antietcd_data_file || ((config.antietcd_data_dir || '/var/lib/vitastor') + '/mon_'+selected[0].port+'.json.gz'),
|
||||||
persist_filter: vitastor_persist_filter({ vitastor_prefix: config.etcd_prefix || '/vitastor' }),
|
persist_filter: vitastor_persist_filter({ vitastor_prefix: config.etcd_prefix || '/vitastor' }),
|
||||||
node_id: cluster[selected[0].idx].replace(/^(https?:\/\/)/, ''), // same as in <cluster> below
|
node_id: cluster[selected[0].idx].replace(/^(https?:\/\/)/, ''), // same as in <cluster> below
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class VitastorAuthFilter
|
|||||||
|
|
||||||
async init()
|
async init()
|
||||||
{
|
{
|
||||||
if (!this.cfg.cert || !this.cfg.key || !this.cfg.osd_ca || !this.cfg.client_cert_auth)
|
if (!this.cfg.cert || !this.cfg.key || !this.cfg.ca || !this.cfg.osd_ca || !this.cfg.client_cert_auth)
|
||||||
{
|
{
|
||||||
throw new Error('Authenticated Vitastor setups require enabled client_cert_auth, cert, key'+
|
throw new Error('Authenticated Vitastor setups require enabled client_cert_auth, cert, key'+
|
||||||
' and separate ca (client CA), osd_ca and optionally mon_ca');
|
' and separate ca (client CA), osd_ca and optionally mon_ca');
|
||||||
|
|||||||
Reference in New Issue
Block a user