def session_mm_salt_master( request, session_mm_conf_dir, session_mm_master_id, session_mm_master_config, log_server, # pylint: disable=unused-argument session_mm_master_log_prefix, cli_master_script_name, _cli_bin_dir, _salt_fail_hard, ): ''' Returns a running salt-master ''' return start_daemon(request, daemon_name='salt-master', daemon_id=session_mm_master_id, daemon_log_prefix=session_mm_master_log_prefix, daemon_cli_script_name=cli_master_script_name, daemon_config=session_mm_master_config, daemon_config_dir=session_mm_conf_dir, daemon_class=SaltMaster, bin_dir_path=_cli_bin_dir, fail_hard=_salt_fail_hard, event_listener_config_dir=session_mm_conf_dir, start_timeout=60)
def session_mm_secondary_salt_master( request, session_mm_secondary_conf_dir, session_mm_secondary_master_id, session_mm_secondary_master_config, log_server, # pylint: disable=unused-argument session_mm_secondary_master_log_prefix, cli_master_script_name, _cli_bin_dir, _salt_fail_hard, session_mm_master_config, session_mm_salt_master): ''' Returns a running salt-master ''' # The secondary salt master depends on the primarily salt master fixture # because we need to clone the keys for keyfile in ('master.pem', 'master.pub'): shutil.copyfile( os.path.join(session_mm_master_config['pki_dir'], keyfile), os.path.join(session_mm_secondary_master_config['pki_dir'], keyfile)) return start_daemon( request, daemon_name='salt-master', daemon_id=session_mm_secondary_master_id, daemon_log_prefix=session_mm_secondary_master_log_prefix, daemon_cli_script_name=cli_master_script_name, daemon_config=session_mm_secondary_master_config, daemon_config_dir=session_mm_secondary_conf_dir, daemon_class=SaltMaster, bin_dir_path=_cli_bin_dir, fail_hard=_salt_fail_hard, event_listener_config_dir=session_mm_secondary_conf_dir, start_timeout=60)
def session_mm_salt_minion( request, session_mm_salt_master, session_mm_secondary_salt_master, session_mm_minion_id, session_mm_minion_config, session_mm_minion_log_prefix, cli_minion_script_name, log_server, _cli_bin_dir, _salt_fail_hard, session_mm_conf_dir, ): """ Returns a running salt-minion """ return start_daemon( request, daemon_name="salt-minion", daemon_id=session_mm_minion_id, daemon_log_prefix=session_mm_minion_log_prefix, daemon_cli_script_name=cli_minion_script_name, daemon_config=session_mm_minion_config, daemon_config_dir=session_mm_conf_dir, daemon_class=SaltMinion, bin_dir_path=_cli_bin_dir, fail_hard=_salt_fail_hard, event_listener_config_dir=session_mm_conf_dir, start_timeout=60, )