def get_replication_paths(): paths = [ ("dir", "check_mk", cmk.gui.watolib.utils.wato_root_dir(), ["sitespecific.mk"]), ("dir", "multisite", cmk.gui.watolib.utils.multisite_dir(), ["sitespecific.mk"]), ("file", "htpasswd", cmk.utils.paths.htpasswd_file), ("file", "auth.secret", '%s/auth.secret' % os.path.dirname(cmk.utils.paths.htpasswd_file)), ("file", "auth.serials", '%s/auth.serials' % os.path.dirname(cmk.utils.paths.htpasswd_file)), # Also replicate the user-settings of Multisite? While the replication # as such works pretty well, the count of pending changes will not # know. ("dir", "usersettings", cmk.utils.paths.var_dir + "/web", ["*/report-thumbnails"]), ("dir", "mkps", cmk.utils.paths.var_dir + "/packages"), ("dir", "local", cmk.utils.paths.omd_root + "/local"), ] # TODO: Move this to CEE specific code again if not cmk_version.is_raw_edition(): paths += [ ("dir", "liveproxyd", cmk.gui.watolib.utils.liveproxyd_config_dir(), ["sitespecific.mk"]), ] # Include rule configuration into backup/restore/replication. Current # status is not backed up. if config.mkeventd_enabled: _rule_pack_dir = str(ec.rule_pack_dir()) paths.append(("dir", "mkeventd", _rule_pack_dir, ["sitespecific.mk"])) _mkp_rule_pack_dir = str(ec.mkp_rule_pack_dir()) paths.append(("dir", "mkeventd_mkp", _mkp_rule_pack_dir)) return paths + _replication_paths
def config_dir(self): return str(ec.rule_pack_dir())