d478bef8a6
Merge branch 'lint/py3-classes' into 'master'
...
Consequently use Python 3-style classes
See merge request ungleich-public/cdist!898
2020-06-21 17:54:56 +02:00
Dennis Camera
ce07021580
Do not subclass object
2020-06-21 16:53:47 +02:00
Darko Poljak
840e417eb7
Fix emulator colored logging
2020-06-11 14:16:37 +02:00
Dennis Camera
747c6b1076
Respect NO_COLOR environment variable
2020-06-03 22:17:52 +02:00
ba77ea9edc
[UX] Add option to enable LogLevel-based coloured output.
...
This makes it easier for new and experienced users to run cdist with higher
verbosity levels, both to know that things are working as expected and to debug
issues.
Documentation has been modified accordingly and default behaviour is not
changed.
2020-06-01 19:11:58 +02:00
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
69622b0fa5
set __cdist_dry_run env var if dry-run
2019-05-16 21:58:47 +02:00
Darko Poljak
a993e0f5a9
Support disabling saving output streams
2018-02-07 18:12:15 +01:00
Darko Poljak
9703e0f08e
Save output streams.
...
Implementation is 99% based on Steven's initial implementation.
2018-01-09 09:31:40 +01:00
Darko Poljak
764ea49904
Log more data.
2017-09-17 20:30:07 +02:00
Darko Poljak
f0dc21ec0c
__cdist_log_level=<log level int value>; __cdist_log_level_name=<log level name> ( #574 )
2017-09-11 09:06:47 +02:00
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
2017-09-09 21:17:29 +02:00
Darko Poljak
f08ac264a0
pep8
2017-09-07 16:37:49 +02:00
Darko Poljak
57f15f9cce
Make __cdist_loglevel value more expressive. ( #571 )
2017-09-07 16:36:23 +02:00
Darko Poljak
314a931b84
Respect cdist log level in emulator.
2017-08-12 21:40:23 +02:00
Darko Poljak
e2a1519332
Merge inventory from beta branch.
2017-07-20 22:04:44 +02:00
Steven Armstrong
f6e1174adb
start moving info log messages to verbose
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2017-07-04 23:49:43 +02:00
Darko Poljak
a722f3c634
3rd iteration of logging cleanup.
2017-07-04 23:49:43 +02:00
Darko Poljak
127c05a882
2nd iteration of logging cleanup.
2017-07-04 23:49:43 +02:00
Darko Poljak
248656b81f
First iteration of logging cleanup.
2017-07-04 23:49:43 +02:00
Darko Poljak
e375bd464d
Merge remote-tracking branch 'ungleich/master' into the-good-the-bad-and-the-ugly
2017-06-12 13:15:00 +02:00
Darko Poljak
2087f7a28a
Un-suppress manifest stdout.
2017-01-20 15:22:25 +01:00
Darko Poljak
8776a2ee06
concurrent.futures -> multiprocessing
2016-12-08 17:36:57 +01:00
Darko Poljak
dbcc94ab65
Add derived env vars for target hostname and fqdn.
2016-08-10 23:56:56 +02:00
Darko Poljak
64efa04599
pep8
2016-07-05 20:44:24 +02:00
Darko Poljak
0049b62cca
Add files conf subdirectory for static files.
2016-06-11 12:02:13 +02:00
Ricardo Catalinas Jiménez
60b2bbf4c9
Fix messaging variables not exported in type manifest
2014-09-21 11:52:38 +01:00
Nico Schottelius
2f842d56eb
integrate messaging into gencode, manifest
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-11-26 01:17:37 +01:00
Nico Schottelius
d1a569fecd
remove bug comments -> no bug here
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-11-25 23:18:19 +01:00
Nico Schottelius
2f5de23ae9
out_path -> base_path
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-19 12:03:25 +02:00
Arkaitz Jimenez
4a89e64115
Make global explorers available to initial manifest and fix hostname explorer
2013-04-01 00:48:57 +02:00
Nico Schottelius
e2e1d0bb67
include %
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 11:05:29 +01:00
Nico Schottelius
1e4833781e
distinguish between user supplied and derived manifest on error printing
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 10:48:30 +01:00
Nico Schottelius
e785092935
allow Manifest to differentiate between supplied and implicit found initial manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 09:07:18 +01:00
Nico Schottelius
6482863c5d
allow manifest to return env for usage from external
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 22:32:18 +01:00
Nico Schottelius
aedb3669c7
print hint if initial manifest is missing
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 21:46:02 +01:00
Nico Schottelius
a22e729a3c
raise special error on missing manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-06 21:32:37 +01:00
Nico Schottelius
c9f728e073
lib/cdist => cdist (pypi)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-25 17:21:58 +02:00