• Darko Poljak's avatar
    Redefine/reimplement CDIST_ORDER_DEPENDENCY · da274e5e
    Darko Poljak authored
    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.
    da274e5e
Name
Last commit
Last update
..
autil Loading commit data...
banner Loading commit data...
capture_output Loading commit data...
capture_output_disabled Loading commit data...
cdist_object Loading commit data...
cdist_type Loading commit data...
code Loading commit data...
config Loading commit data...
configuration Loading commit data...
emulator Loading commit data...
exec Loading commit data...
explorer Loading commit data...
fixtures/remote Loading commit data...
inventory Loading commit data...
manifest Loading commit data...
message Loading commit data...
util Loading commit data...
__init__.py Loading commit data...
__main__.py Loading commit data...