Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Assign NameStore Call NameLoad Assign NameStore Dict Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore Call NameLoad FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad For NameStore ListLoad BinOpAdd BinOpAdd NameLoad Str NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Break If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict For NameStore NameLoad body If CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Continue TryExcept body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Call SubscriptLoad NameLoad Index Call AttributeLoad Str attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Raise Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args defaults body For NameStore NameLoad body Expr Call NameLoad NameLoad Return Call NameLoad ListComp NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args defaults body Return ListComp NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return CompareIn NameLoad SubscriptLoad NameLoad Index Str handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Call AttributeLoad Str attr NameLoad Str NameLoad NameLoad Call AttributeLoad Str attr NameLoad Str NameLoad NameLoad Call AttributeLoad Str attr NameLoad Str NameLoad NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad If BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareNotIn NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad NameLoad keyword NameLoad keyword Str keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Dict Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Dict Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword Str TryExcept body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad If NameLoad body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Str body Expr Str Assign NameStore Call AttributeLoad Str attr Str NameLoad If CompareNotIn NameLoad NameLoad body Assign NameStore ListLoad Str Str Str Str orelse Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Call AttributeLoad Str attr NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore UnaryOpNot NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad ListLoad NameLoad NameLoad NameLoad Dict NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad UnaryOpNot CompareEq NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Break Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Expr Call SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad NameLoad body For NameStore TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Return Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad NameLoad attr Str Dict For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Call AttributeLoad Str attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Dict Return Call SubscriptLoad NameLoad Index Str Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore Call NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Num Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad keyword Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListComp NameLoad comprehension NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareGt NameLoad BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Str body If UnaryOpNot BoolOpOr NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareGt NameLoad BinOpAdd SubscriptLoad NameLoad Index Str NameLoad CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad Str body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If BoolOpAnd NameLoad CompareLtE NameLoad BinOpAdd SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Raise Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad Num body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore ListComp NameLoad comprehension NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad TryExcept body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body TryExcept body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body AugAssignAdd NameStore Str TryExcept body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body TryExcept body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body AugAssignAdd NameStore Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args defaults body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list
N/A N/A 
.. _module_mc_macros:

mc_macros / macros helpers
============================================

 N/A msgpack N/A os N/A copy N/A json N/A hashlib N/A logging N/A time N/A traceback N/A yaml salt.utils yamldumper salt.renderers.yaml get_yaml_loader salt.exceptions SaltException salt.utils.odict OrderedDict mc_states.api _GLOBAL_KINDS mc_states.api _SUB_REGISTRIES N/A mc_states.api N/A mc_states.saltapi mc_states.saltapi NoRegistryLoaderFound N/A six N/A N/A mc_states api six N/A _REGISTRY N/A N/A _default_activation_status N/A object N/A _LOCAL_REG_CACHE N/A N/A NOT_SHARED N/A controllers services nodetypes localsettings cloud N/A log N/A N/A logging getLogger __name__ N/A DEFAULT_SUF makina-states.local N/A DEFAULT_LOCAL_REG_NAME N/A N/A {0}.{{0}} format DEFAULT_SUF N/A RKEY mcreg_{0}_{1} N/A REGISTRY_FORMATS N/A pack yaml N/A _default N/A object get_registry_formats N/A N/A N/A N/A N/A N/A N/A copy deepcopy REGISTRY_FORMATS N/A is_item_active N/A N/A registry_name item default_status grains_pref force N/A False None False N/A N/A 
    Look in pillar/grains/localconfig for registry
    activation status
     N/A N/A grains_pref N/A N/A grains_pref N/A N/A makina-states.{0} format registry_name N/A local_reg N/A get_local_registry registry_name N/A config_entry N/A N/A N/A grains_pref .is. item N/A N/A grains_pref . item N/A N/A force N/A N/A val default_status N/A N/A val N/A N/A __salt__ N/A mc_utils.get config_entry _default local_registry local_reg N/A N/A val _default N/A N/A N/A N/A val _default N/A N/A val default_status N/A val N/A load_kind_registries N/A N/A kind N/A N/A N/A N/A kind _REGISTRY N/A N/A N/A _REGISTRY N/A kind N/A N/A registry _SUB_REGISTRIES N/A N/A N/A registry N/A _REGISTRY N/A kind N/A N/A N/A N/A N/A N/A N/A _REGISTRY N/A kind N/A registry N/A N/A __salt__ N/A N/A N/A mc_{0}.{1} format kind registry N/A N/A N/A KeyError N/A N/A trace N/A N/A traceback format_exc N/A N/A N/A N/A mc_states saltapi NoRegistryLoaderFound N/A N/A mc_{0}.{1} is unavailable
{2} format kind registry trace N/A N/A _REGISTRY N/A kind N/A load_registries N/A N/A N/A N/A N/A kind _GLOBAL_KINDS N/A N/A N/A load_kind_registries kind N/A N/A sorted N/A a N/A a _REGISTRY N/A kinds N/A N/A N/A N/A N/A N/A a N/A a _GLOBAL_KINDS N/A metadata N/A N/A kind grain state bases N/A None None None N/A N/A N/A bases None N/A N/A bases N/A N/A N/A kind bases kind bases N/A is_active N/A N/A registry name N/A N/A N/A 
    Is the queried service active in the registry
     N/A N/A N/A N/A name N/A registry N/A actives N/A N/A N/A N/A False N/A get_registry_paths N/A N/A name registry_format N/A pack N/A N/A locs N/A N/A __salt__ N/A mc_locations.settings N/A etc N/A locs N/A conf_dir N/A confs N/A mastersalt salt global context N/A N/A {0}/{1}/makina-states/{2}.{3} format etc mastersalt name registry_format N/A N/A {0}/{1}/makina-states/{2}.{3} format etc salt name registry_format N/A N/A {0}/{1}/{2}.{3} format etc makina-states name registry_format N/A N/A {0}/makina-states/{1}.{2} format N/A __opts__ N/A config_dir name registry_format N/A confs N/A get_registry_path N/A N/A name registry_format registryf context N/A yaml None None N/A N/A confs N/A get_registry_paths name registry_format registry_format N/A N/A registryf N/A N/A N/A os path exists registryf N/A N/A registryf N/A N/A N/A context None N/A context confs N/A N/A N/A name NOT_SHARED N/A N/A context context N/A N/A context global N/A registryf N/A confs N/A context N/A registryf N/A yaml_load_local_registry N/A N/A name registryf N/A None N/A N/A registry N/A N/A __salt__ N/A mc_utils.yaml_load N/A get_registry_path name registryf registryf registry_format yaml is_file True N/A N/A registry N/A N/A registry N/A N/A registry N/A yaml_dump_local_registry N/A N/A registry N/A N/A N/A content N/A N/A __salt__ N/A mc_utils.yaml_dump registry nonewline False N/A content N/A pack_load_local_registry N/A N/A name registryf N/A None N/A N/A value N/A N/A regpath N/A get_registry_path name registryf registryf registry_format pack N/A N/A N/A N/A N/A N/A os path exists regpath N/A N/A N/A open regpath fic N/A N/A rvalue N/A N/A fic read N/A value N/A N/A __salt__ N/A mc_utils.msgpack_load rvalue N/A N/A N/A N/A N/A msgpack exceptions UnpackValueError N/A N/A N/A N/A log error N/A N/A decoding error, removing stale {0} format regpath N/A N/A N/A os unlink registryf N/A value N/A N/A value N/A pack_dump_local_registry N/A N/A registry N/A N/A N/A 
    encode in a file using msgpack backend
     N/A N/A N/A __salt__ N/A mc_utils.msgpack_dump registry N/A encode_local_registry N/A N/A name registry registry_format N/A yaml N/A N/A registryf N/A get_registry_path name registry_format registry_format N/A dregistry N/A N/A N/A os path dirname registryf N/A N/A N/A N/A N/A os path exists dregistry N/A N/A N/A N/A os makedirs dregistry N/A content N/A N/A __salt__ N/A N/A N/A mc_macros.{0}_dump_local_registry format registry_format registry N/A sync False N/A N/A N/A N/A os path exists registryf N/A N/A N/A open registryf fic N/A N/A old_content N/A N/A fic read N/A N/A old_content content N/A N/A sync True N/A N/A sync True N/A sync N/A N/A N/A open registryf w fic N/A N/A N/A N/A fic write content N/A N/A N/A os chmod registryf 448 N/A _get_local_registry N/A N/A name cached cachetime registry_format N/A True 60 yaml N/A N/A 
    Get local registry
    Masteralt & Salt share all the local registries
    unless for the main ones:

        - controllers
        - services
        - nodetypes
        - localsettings
        - cloud

    For backward compatibility, we take care to load and merge
    shared registries in mastersalt & salt prefix if any is found.
     N/A key N/A N/A {0}_{1} format mcreg name N/A N/A name NOT_SHARED N/A N/A to_load N/A global context mastersalt salt N/A N/A to_load N/A context _do N/A N/A name to_load registry_format N/A N/A N/A registryfs N/A get_registry_paths name registry_format registry_format N/A registry N/A OrderedDict N/A prefix to_load N/A N/A registryf N/A registryfs N/A prefix N/A dregistry N/A N/A N/A os path dirname registryf N/A N/A N/A N/A N/A os path exists dregistry N/A N/A N/A N/A os makedirs dregistry N/A N/A N/A N/A os path exists registryf N/A N/A data N/A N/A __salt__ N/A N/A N/A mc_macros.{0}_load_local_registry format registry_format name registryf N/A registry N/A N/A __salt__ N/A mc_utils.dictupdate registry data N/A N/A _unprefix registry name N/A registry N/A N/A cache_key N/A N/A RKEY format key registry_format N/A force_run N/A cached N/A N/A N/A __salt__ N/A mc_utils.memoize_cache _do N/A name to_load registry_format N/A cache_key cachetime use_memcache False force_run force_run N/A _unprefix N/A N/A registry name N/A N/A N/A loc_k N/A N/A DEFAULT_LOCAL_REG_NAME format name N/A k N/A t N/A t registry N/A N/A t startswith loc_k N/A N/A spl N/A loc_k . N/A nk N/A N/A spl join N/A N/A N/A k split spl N/A 1 N/A N/A registry N/A nk N/A registry N/A k N/A N/A N/A registry pop k N/A registry N/A get_local_registry N/A N/A name cached cachetime registry_format N/A True 60 yaml N/A N/A local_registry N/A _get_local_registry name cached cached cachetime cachetime registry_format registry_format N/A N/A local_registry N/A N/A formats N/A a N/A a N/A get_registry_formats N/A N/A a registry_format N/A f formats N/A N/A local_registry N/A _get_local_registry name cached cached cachetime cachetime registry_format f N/A local_registry N/A N/A N/A N/A _unprefix local_registry name N/A local_registry N/A update_registry_params N/A N/A registry_name params registry_format N/A yaml N/A N/A 
    Update the desired local registry
     N/A N/A N/A __salt__ N/A mc_utils.invalidate_memoize_cache N/A N/A RKEY format registry_name registry_format N/A registry N/A get_local_registry registry_name cached False registry_format registry_format N/A changes N/A N/A topreg_name N/A N/A mc_{0}.registry format registry_name N/A default True N/A N/A topreg_name __salt__ N/A N/A registry_obj N/A N/A __salt__ N/A topreg_name N/A pref N/A registry_obj N/A grains_pref N/A default False N/A N/A pref N/A N/A DEFAULT_LOCAL_REG_NAME format registry_name N/A N/A param value N/A N/A six iteritems params N/A N/A gparam param N/A N/A N/A N/A N/A param startswith pref N/A N/A N/A param startswith makina-states. N/A N/A gparam N/A N/A {0}.{1} format pref param N/A reg_value N/A N/A registry get gparam _default N/A N/A reg_value value N/A N/A data N/A changes registry N/A N/A N/A N/A data update N/A gparam value N/A N/A default N/A N/A N/A param startswith makina-states. N/A param registry N/A N/A N/A registry N/A param N/A changes N/A N/A N/A encode_local_registry registry_name registry registry_format registry_format N/A N/A N/A __salt__ N/A mc_utils.invalidate_memoize_cache N/A N/A RKEY format registry_name registry_format N/A changes N/A update_local_registry N/A N/A registry_name params registry_format N/A yaml N/A N/A 
    Alias to update_local_registry
     N/A N/A update_registry_params registry_name params registry_format registry_format N/A get_registry N/A N/A registry_configuration N/A N/A N/A 
    Mangle a registry of activated/unactived states to be run
    as part of the automatic highstate inclusion.

    ::

        {
            'kind': 'foo',
            'bases': ['localsettings'],
            'defaults': {
               'mastersalt_minion': {'active': False},
               'mastersalt_master': {'active': False},
               'salt_minion': {'active': False},
               'salt_master': {'active': True}
              }
            }
        }

    Will activate the 'makina-states.controllers.salt_master' and
    deactivate all other states to be automaticly run

    EG, for automatic activation of firewalld,
    lookup in Configs for this key (pillar, grains, reg)::

        makina-states.services.is.firewall.firewalld: true
        makina-states.services.firewall.firewalld: true


    Idea why for the dict containing 'active', i did not choosed
    a simple boolean is to support other data in the near future.

    We return here a registry in the form::

        {
            'kind': 'foo',
            'bases': ['localsettings'],
            'states_pref': 'makina-states.foo',
            'grains_pref': 'makina-states.foo',
            'activated': {'salt_master': {'active': True}},
            'unactivated': {
               'mastersalt_minion': {'active': False},
               'mastersalt_master': {'active': False},
               'salt_minion': {'active': False},
            },
            'defaults': {
               'mastersalt_minion': {'active': False},
               'mastersalt_master': {'active': False},
               'salt_minion': {'active': False},
               'salt_master': {'active': True}
              }
            }
        }

     N/A registry N/A N/A registry_configuration copy N/A N/A N/A registry setdefault is N/A N/A N/A registry N/A grains_pref N/A N/A makina-states.{0} format N/A registry N/A kind N/A N/A registry N/A states_pref N/A N/A makina-states.{0} format N/A registry N/A kind N/A N/A N/A registry setdefault actives N/A N/A N/A N/A registry setdefault unactivated N/A N/A N/A N/A registry setdefault availables N/A N/A N/A item data N/A N/A N/A registry N/A defaults items N/A N/A activation_status _default_activation_status N/A N/A isinstance data dict N/A N/A activation_status N/A N/A __salt__ N/A mc_macros.is_item_active N/A registry N/A kind item default_status N/A N/A data get active activation_status force N/A N/A data get force False N/A N/A activation_status _default_activation_status N/A N/A activation_status N/A N/A N/A N/A registry N/A actives N/A item data N/A N/A N/A registry N/A is N/A item True N/A N/A N/A N/A registry N/A unactivated N/A item data N/A N/A N/A registry N/A is N/A item False N/A N/A N/A N/A registry N/A availables N/A item data N/A N/A registry N/A has N/A registry N/A is N/A registry N/A construct_registry_configuration N/A N/A name defaults N/A None N/A N/A 
    Helper to factorise registry mappings
     N/A metadata_reg N/A N/A __salt__ N/A N/A N/A mc_{0}.metadata format name N/A N/A defaults N/A N/A defaults N/A N/A N/A N/A __salt__ N/A mc_macros.get_registry N/A kind bases defaults N/A metadata_reg N/A kind N/A metadata_reg N/A bases defaults N/A unregister N/A N/A kind slss data suf N/A None N/A N/A 
    Unregister a/some service(s) in the local registry
     N/A state N/A N/A isinstance slss basestring N/A N/A slss N/A slss N/A N/A slss None N/A N/A slss N/A N/A data N/A locals N/A slss N/A N/A N/A data N/A name N/A N/A - join slss N/A state N/A N/A makina-states-unregister.{kind}.{name}{suf}:
 format data N/A state   mc_registry.absent:
 N/A state N/A N/A     - name: {kind}
 format data N/A state     - slss:
 N/A sls slss N/A N/A state N/A N/A       - {0}
 format sls N/A state     - order: 9999
 N/A state N/A state N/A register N/A N/A kind slss data suf N/A None N/A N/A 
    Register a/some service(s) in the local registry
     N/A state N/A N/A isinstance slss basestring N/A N/A slss N/A slss N/A N/A slss None N/A N/A slss N/A N/A data N/A locals N/A slss N/A N/A N/A data N/A name N/A N/A - join slss N/A state N/A N/A makina-states-register.{kind}.{name}{suf}:
 format data N/A state   mc_registry.present:
 N/A state N/A N/A     - name: {kind}
 format data N/A state     - slss:
 N/A sls slss N/A N/A state N/A N/A       - {0}
 format sls N/A state     - order: 9999
 N/A state N/A state N/A autoinclude N/A N/A reg additional_includes N/A None N/A N/A 
    Helper to autoload & (un)register services in a top file
     N/A sls N/A N/A additional_includes N/A N/A additional_includes N/A N/A bases N/A N/A reg get bases N/A N/A includes N/A N/A slses N/A N/A base bases N/A N/A N/A N/A includes append N/A N/A   - makina-states.{base}
 format base base N/A N/A N/A slses append N/A N/A makina-states.{base}
 format base base N/A N/A state data N/A N/A N/A N/A reg get actives N/A items N/A N/A N/A N/A includes append N/A N/A   - {rstatesPref}.{state}
 format rstatesPref N/A reg N/A states_pref state state N/A N/A N/A slses append N/A N/A {rstatesPref}.{state}
 format rstatesPref N/A reg N/A states_pref state state N/A N/A N/A includes extend N/A N/A N/A   - {0}
 format a N/A a additional_includes N/A N/A N/A slses extend N/A N/A N/A {0}
 format a N/A a additional_includes N/A includes N/A N/A N/A N/A includes insert 0 include:
 N/A sls N/A N/A join includes N/A slss N/A N/A N/A state data N/A N/A N/A N/A reg get actives N/A items N/A N/A N/A N/A slss append state N/A sls N/A N/A 
{0}
 format N/A N/A __salt__ N/A mc_macros.register N/A reg N/A kind slss suf auto N/A slss N/A N/A N/A state data N/A N/A N/A N/A reg get unactivated N/A items N/A N/A N/A N/A slss append state N/A sls N/A N/A 
{0}
 format N/A N/A __salt__ N/A mc_macros.unregister N/A reg N/A kind slss suf auto N/A sls N/A get_local_cache_key N/A N/A key N/A N/A N/A N/A N/A N/A mc_states saltapi get_cache_key key __opts__ N/A _cache_entry N/A N/A local_reg key ttl N/A 1 N/A N/A data N/A N/A local_reg get key N/A OrderedDict N/A N/A N/A isinstance data dict N/A N/A data N/A OrderedDict N/A N/A N/A data setdefault ttl ttl N/A N/A N/A data setdefault value _default N/A N/A N/A data setdefault time N/A N/A time time N/A data N/A default_cache_value N/A N/A N/A N/A N/A _default N/A store_local_cache N/A N/A registry local_reg ttl N/A 1 N/A N/A now N/A N/A time time N/A k N/A a N/A a local_reg N/A N/A data N/A _cache_entry local_reg k N/A N/A now N/A N/A data N/A time N/A data N/A ttl N/A N/A N/A N/A local_reg pop k None N/A N/A N/A __salt__ N/A mc_macros.update_local_registry registry local_reg registry_format pack N/A local_reg N/A N/A __salt__ N/A mc_macros.get_local_registry registry registry_format pack N/A local_reg N/A save_local_cached_entry N/A N/A value key sha1_key ttl registry N/A None None 1 disk_cache N/A N/A N/A N/A key sha1_key N/A N/A N/A ValueError provide at least key or sha1_key N/A N/A sha1_key N/A N/A sha1_key N/A get_local_cache_key key N/A local_reg N/A N/A __salt__ N/A mc_macros.get_local_registry registry registry_format pack N/A data N/A _cache_entry local_reg sha1_key ttl ttl N/A now N/A N/A time time N/A N/A N/A now N/A N/A data N/A time ttl N/A value _default N/A N/A N/A data N/A ttl ttl N/A N/A data N/A time now N/A N/A data N/A value value N/A N/A local_reg N/A sha1_key data N/A local_reg N/A store_local_cache registry local_reg ttl ttl N/A local_reg N/A get_local_cached_entry N/A N/A key default ttl soft registry N/A _default 1 False disk_cache N/A N/A local_reg N/A N/A __salt__ N/A mc_macros.get_local_registry registry registry_format pack N/A sha1_key N/A get_local_cache_key key N/A data N/A _cache_entry local_reg sha1_key ttl ttl N/A now N/A N/A time time N/A value _default N/A N/A ttl N/A now N/A N/A data N/A time ttl N/A N/A value N/A data N/A value N/A N/A data N/A value value N/A N/A N/A value _default N/A soft N/A N/A N/A KeyError key N/A data N/A filecache_fun N/A N/A func args kwargs registry prefix ttl N/A None None disk_cache None 1 N/A N/A 
    Execute a function and store the result in a filebased cache

    func
        func to execute
    args
        positional args to func
    kwargs
        kwargs to func
    registry
        name of the file inside /etc/makina-states
    prefix
        cache key
    ttl
        if 0: do not use cache
     N/A N/A isinstance kwargs dict N/A N/A kwargs N/A N/A copy deepcopy kwargs N/A k N/A a N/A a kwargs N/A N/A N/A N/A k startswith __pub_ N/A N/A N/A N/A kwargs pop k None N/A N/A prefix N/A N/A prefix N/A N/A {0} format func N/A key N/A N/A {0}_ format prefix N/A N/A N/A key N/A N/A json dumps args N/A N/A N/A TypeError N/A N/A N/A N/A key N/A N/A {0} format N/A repr args N/A N/A N/A Exception N/A N/A key N/A N/A N/A key N/A N/A json dumps kwargs N/A N/A N/A TypeError N/A N/A N/A N/A key N/A N/A {1} format N/A repr kwargs N/A N/A N/A Exception N/A N/A key N/A data N/A get_local_cached_entry key ttl ttl soft True N/A value N/A data N/A value N/A N/A value _default N/A N/A N/A N/A args None N/A kwargs None N/A N/A value N/A func args kwargs N/A N/A N/A N/A args None N/A kwargs None N/A N/A value N/A func args N/A N/A N/A N/A args None N/A kwargs None N/A N/A value N/A func kwargs N/A N/A value N/A func N/A N/A N/A N/A save_local_cached_entry value key registry registry ttl ttl N/A N/A N/A Exception N/A N/A N/A N/A log error N/A N/A traceback format_exc N/A N/A N/A N/A log garbage Using filecache ! N/A value N/A glob_dump N/A N/A N/A N/A N/A N/A N/A N/A N/A copy deepcopy _GLOBAL_KINDS N/A N/A N/A N/A TypeError ValueError N/A N/A _GLOBAL_KINDS N/A sub_dump N/A N/A N/A N/A N/A N/A N/A N/A N/A copy deepcopy _SUB_REGISTRIES N/A N/A N/A N/A TypeError ValueError N/A N/A _SUB_REGISTRIES N/A dump N/A N/A N/A N/A N/A N/A N/A N/A N/A copy deepcopy _REGISTRY N/A N/A N/A N/A TypeError ValueError N/A N/A _REGISTRY N/A