cdist/cdist/core
Darko Poljak da274e5ef3 Redefine/reimplement CDIST_ORDER_DEPENDENCY
CDIST_ORDER_DEPENDENCY now defines type order dependency context.
cdist (emulator) maintains global state variables, as files,
order_dep_state and typeorder_dep, and per object state variable,
as file, typeorder_dep.

If order_dep_state exists then this defines that order dependency is
turned on.
If order_dep_state does not exist then order dependency is turned off.

If order dependency is on then objects created after it is turned on are
recorded into:
    * global typeorder_dep, in case of init manifest
    * object's typeorder_dep, in case of type's manifest.

If order dependency is on then requirement is injected, where object
created before current, is read from:
    * global typeorder_dep, in case of init manifest
    * object's typeorder_dep, in case of type's manifest.

Every time order dependency is turned off, typeorder_dep files are
removed, which means that type order list is cleared, context is
cleaned.

In the end cdist cleans after itself, i.e. mentioned files are removed.

When running type manifest is finished typeorder_dep file is removed.
When running config finishes global typeorder_dep and order_dep_state
files are removed.

Global type order recording is untouched.
Furthermore, for completeness, type order is now recorded for each object
too.
2019-11-27 15:04:47 +01:00
..
__init__.py Warn about invalid type and continue instead of error. 2017-11-02 17:44:47 +01:00
cdist_object.py Redefine/reimplement CDIST_ORDER_DEPENDENCY 2019-11-27 15:04:47 +01:00
cdist_type.py Allow custom message for each deprecated parameter 2019-06-20 10:54:40 +02:00
code.py set __cdist_dry_run env var if dry-run 2019-05-16 21:58:47 +02:00
explorer.py set __cdist_dry_run env var if dry-run 2019-05-16 21:58:47 +02:00
manifest.py Redefine/reimplement CDIST_ORDER_DEPENDENCY 2019-11-27 15:04:47 +01:00
util.py __cdist_log_level=<log level int value>; __cdist_log_level_name=<log level name> (#574) 2017-09-11 09:06:47 +02:00