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.
5 years ago
Ander Punnar
69622b0fa5
set __cdist_dry_run env var if dry-run
6 years ago
Darko Poljak
a993e0f5a9
Support disabling saving output streams
7 years ago
Darko Poljak
9703e0f08e
Save output streams.
...
Implementation is 99% based on Steven's initial implementation.
7 years ago
Darko Poljak
764ea49904
Log more data.
8 years ago
Darko Poljak
f0dc21ec0c
__cdist_log_level=<log level int value>; __cdist_log_level_name=<log level name> ( #574 )
8 years ago
Darko Poljak
3454da076f
Add -l/--log-level option. Honor __cdist_loglevel env var. ( #572 )
...
Add -l/--log-level option, __cdist_loglevel -> __cdist_log_level; honor __cdist_log_level env var
8 years ago
Darko Poljak
f08ac264a0
pep8
8 years ago
Darko Poljak
57f15f9cce
Make __cdist_loglevel value more expressive. ( #571 )
8 years ago
Darko Poljak
75fe3272b3
Add file locking for -j parallel execution.
8 years ago
Darko Poljak
314a931b84
Respect cdist log level in emulator.
8 years ago
Darko Poljak
e2a1519332
Merge inventory from beta branch.
8 years ago
Steven Armstrong
f6e1174adb
start moving info log messages to verbose
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Darko Poljak
a722f3c634
3rd iteration of logging cleanup.
8 years ago
Darko Poljak
127c05a882
2nd iteration of logging cleanup.
8 years ago
Darko Poljak
248656b81f
First iteration of logging cleanup.
8 years ago
Darko Poljak
2087f7a28a
Un-suppress manifest stdout.
8 years ago
Darko Poljak
8776a2ee06
concurrent.futures -> multiprocessing
8 years ago
Darko Poljak
dbcc94ab65
Add derived env vars for target hostname and fqdn.
9 years ago
Darko Poljak
64efa04599
pep8
9 years ago
Darko Poljak
0049b62cca
Add files conf subdirectory for static files.
9 years ago
Ricardo Catalinas Jiménez
60b2bbf4c9
Fix messaging variables not exported in type manifest
11 years ago
Nico Schottelius
2f842d56eb
integrate messaging into gencode, manifest
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
d1a569fecd
remove bug comments -> no bug here
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
2f5de23ae9
out_path -> base_path
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Arkaitz Jimenez
4a89e64115
Make global explorers available to initial manifest and fix hostname explorer
12 years ago
Nico Schottelius
e2e1d0bb67
include %
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
1e4833781e
distinguish between user supplied and derived manifest on error printing
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
e785092935
allow Manifest to differentiate between supplied and implicit found initial manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
6482863c5d
allow manifest to return env for usage from external
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
aedb3669c7
print hint if initial manifest is missing
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
a22e729a3c
raise special error on missing manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
c9f728e073
lib/cdist => cdist (pypi)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
57ed946414
Remove __self variable
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
7d2799d958
Make __manifest usable in type manifests
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Nico Schottelius
a8e9b7feed
:%s/cdist_object.type/cdist_object.cdist_type/g
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago
Steven Armstrong
d6cf85e6f6
implement /__object_fq/__object_name/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
dc3ed07153
/__debug/__cdist_debug/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
d427e3f585
__self should not contain .cdist
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
e58b52592b
add missing environment variable __self
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Nico Schottelius
7bb81e2f18
Whitespace does not not weigh anything - remove - sed -i 's/ *$//g' *py */*py
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
14 years ago
Nico Schottelius
a415cc4b91
add correct logger in manifest
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
14 years ago
Nico Schottelius
0d441eb378
report info when running initial manifest (it may take some time)
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
14 years ago
Nico Schottelius
ba59339f67
fixup code and manifest
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
14 years ago
Steven Armstrong
f723bede10
no longer return output from run_*_manifest
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
6dada17509
only run type manifest if it exists
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
74300ab38e
set __cdist_manifest for use in type emulator
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
be21cdce17
set __cdist_manifest for use in type emulator
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
c15673aef7
+docstring
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago
Steven Armstrong
a8ec91c804
-e /type_base_path/type_path/ -e /object_base_path/object_path/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
14 years ago