password = self.mgr.get_store(pw_key)
if password is None:
if not spec.monitor_password:
- password = ''.join(random.choice(string.ascii_lowercase) for _ in range(self.MAX_KEEPALIVED_PASS_LEN))
+ password = ''.join(random.choice(string.ascii_lowercase)
+ for _ in range(self.MAX_KEEPALIVED_PASS_LEN))
self.mgr.set_store(pw_key, password)
else:
if spec.monitor_password:
password = self.mgr.get_store(pw_key)
if password is None:
if not spec.keepalived_password:
- password = ''.join(random.choice(string.ascii_lowercase) for _ in range(self.MAX_KEEPALIVED_PASS_LEN))
+ password = ''.join(random.choice(string.ascii_lowercase)
+ for _ in range(self.MAX_KEEPALIVED_PASS_LEN))
self.mgr.set_store(pw_key, password)
else:
if spec.keepalived_password:
'http_addr': daemon_spec.ip if daemon_spec.ip else ''
})
+ if 'dashboard' in self.mgr.get('mgr_map')['modules'] and spec.initial_admin_password:
+ self.mgr.check_mon_command(
+ {'prefix': 'dashboard set-grafana-api-password'}, inbuf=spec.initial_admin_password)
+
config_file = {
'files': {
"grafana.ini": grafana_ini,