Darko Poljak
72001b237e
Remove relict comment.
8 years ago
Darko Poljak
d96be90f26
Fix self.target_host
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
92d96c14b9
Undo reqs conflict detection, continue appending new reqs.
9 years ago
Darko Poljak
72345f5516
Make union of existing and new requirements instead of conflict error.
9 years ago
Darko Poljak
bd9008794c
Conflicting requirements bugfix.
9 years ago
Nico Schottelius
fa6e389fdd
cannot use False for object id, as it is being used for os.path.join() in object
...
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
10 years ago
Nico Schottelius
73c77dd2d3
Let core use random .cdist directory for objects
...
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
10 years ago
Daniel Heule
cfbc68aa11
bugfix if both override and order is specified
11 years ago
Daniel Heule
60c53e213c
testcases emulator.OverrideTestCase, with some minor bugfixes to make
...
test work as expected ...
11 years ago
Daniel Heule
52e2017d8f
CDIST_ALLOW_OVERRIDE -> CDIST_OVERRIDE as requested by nico
11 years ago
Daniel Heule
51afca5336
Implement lastest suggestions from nico, rename ENV Variable to
...
CDIST_ORDER_DEPENDENCY
11 years ago
Nico Schottelius
34f2f7f038
setting up CDIST_ALLOW_OVERRIDE to any value is ok - do not depend on true/yes/ja
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Daniel Heule
5fbac8d0ba
forgot the : after the else ...
11 years ago
Daniel Heule
197fabf40a
added some ideas from asteven and a bit more description about the order
...
in the manpage
11 years ago
Daniel Heule
4ef55ef13f
allow object overrides with CDIST_ALLOW_OVERRIDE=true
11 years ago
Nico Schottelius
ac0c88fe9f
remove some old typos and omit type details that follow anyway
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
ce73cef457
explain that a requirement caused the error, otherwise you search until you die
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Daniel Heule
61aec12ba1
Try2 to make cdist honor the manifest order,
...
this implementation has some more lines of code,
but no collision with the require variable.
11 years ago
Daniel Heule
824381e6ca
new special value require="CDIST_HONOR_MANIFEST_ORDER"
...
which tells cdist to execute types in the manifest order
11 years ago
Steven Armstrong
08762330e1
default to None, not empty list
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
39f65d2ef7
leave conversion of list to underlying fsproperty
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
8b0eb5766a
bugfix: handle non-existent default
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
67f61eb7ec
make default values for optional_multiple parameters work
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
fc40a40ae0
implement configurable default values for parameters
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Nico Schottelius
73338c330b
record the type name, if there is no such type
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
93f5ace932
clenaup logging in emulator, cleanup emulator in main script
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Steven Armstrong
3de9b869ac
there is no such thing as cdist install in master
...
remove all traces of it to prevent the ongoing merge issues when using the real thing
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Nico Schottelius
136ddc05b5
context based changes
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
866645679a
throw a better exception when environment variables are missing
...
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
Steven Armstrong
7205cd5ecf
remove that crappy old singleton object_id thingy
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Nico Schottelius
3d73cd2fd3
better debugging for wrong type, fix emulator tests, fixes #176
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
2fe647a1f7
Revert "implement before/after to declare dependencies and deprecate require"
...
Comment from asteven:
Some problems showed up while updating the docs and tests.
You should revert the merge for now.
This reverts commit 84770b9ef2
.
12 years ago
Steven Armstrong
84770b9ef2
implement before/after to declare dependencies and deprecate require
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
--whitespace
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Steven Armstrong
6d430524f1
binary all the way, fixes issue #138
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Steven Armstrong
6c685e61d5
fixes #126
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Nico Schottelius
2fca87eda8
++comment
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
a498330bd3
remove _read_stdin and open stdin file in non-binary mode
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
45d5e4719a
read from stdin using read, not buffer.read() to be compatible with other IO streams
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
a32d3abd33
allow to pass in environment into emulator
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
7b51e22922
allow to read stdin from different handle than sys.stdin in emulator
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
c9f728e073
lib/cdist => cdist (pypi)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Steven Armstrong
36513997d9
implement multiple parameters based on https://github.com/telmich/cdist/pull/71 by Sébastien Gross
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
06649d3478
new feature: capture and forward stdin to types
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
7d61b77708
fix autorequire dependency handling
...
- inherit explicit requirements that the user defined himself
- but _not_ implicit requirements that cdist added for autorequire
Changes:
- added new .autorequire property to CdistObject to keep track of implicit autorequire dependencies
- Emulator appends implicit requirements to this .autorequire property
- DependencyResolver preprocess these .autorequire properties before resolving normal dependencies
- refactored and documented DependencyResolver so it's clearer what happens and easier to use from tests
- update test cases to match new DependencyResolver behaviour
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
2ff286cf1d
inherit dependencies from defining object when setting up implicit dependencies through autorequire
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Steven Armstrong
0760ff3c94
implement boolean parameters, forgotten files ;-)
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago
Nico Schottelius
46e6ea4308
print name, not object (user does not need to see python way of things)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
13 years ago