File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/daemons/__pycache__/masterapi.cpython-310.pyc
Back
o ;js� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl Zddl ZddlZddlZddl ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Zddl!Zddl"Zddl#Zddl$Zddl%Zddl&m'Z' ddlm(Z( zddl)Z)dZ*W n e+y� dZ*Y nw e�,e-�Z.dZ/e/fdd �Z0d d� Z1dd � Z2d dd�Z3dd� Z4d dd�Z5dd� Z6dd� Z7dd� Z8G dd� d�Z9G dd� d�Z:G dd� d�Z;dS )!z� This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. � N)�DEFAULT_TARGET_DELIM)� git_pillarTF)zsalt/job/*/publishzsalt/job/*/newzsalt/job/*/returnzsalt/key�salt/cloud/*� salt/run/*zsalt/cluster/*zsalt/wheel/*/newzsalt/wheel/*/returnr r c C s |D ]}t � | |�r dS qdS )NFT)�fnmatch)�tagZ blacklistZblack� r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/daemons/masterapi.py�valid_minion_tagJ s �r c C s� g }dd� | � dg �D �D ]6}d|v rCztjjj| |d tjtjtjd�}|� |� W q tj jyB | � dd�r;� t� d� Y q w q |S ) zF Clear out the ext pillar caches, used when the master starts c S s g | ]}|�qS r r )�.0�xr r r � <listcomp>V s z#init_git_pillar.<locals>.<listcomp>Z ext_pillar�git)Zper_remote_overridesZper_remote_onlyZglobal_onlyZgit_pillar_verify_configTzCould not initialize git_pillar)�get�salt�utilsZgitfsZ GitPillarr ZPER_REMOTE_OVERRIDESZPER_REMOTE_ONLYZGLOBAL_ONLY�append� exceptionsZFileserverConfigError�log�critical)�opts�retZ opts_dict�pillarr r r �init_git_pillarQ s&