Commit graph

663 commits

Author SHA1 Message Date
Nico Schottelius
c4aa68cfc1 ++version
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-29 15:53:57 +02:00
Nico Schottelius
7833d4d64c Merge branch 'remote_prefix' 2012-05-29 15:41:48 +02:00
Steven Armstrong
5edf39f111 no special case for rsync in core. handle implementation specific details in remote-copy script instead
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-05-29 11:02:23 +02:00
Steven Armstrong
21b85e410e bugfix: its a method, not a function
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-05-29 10:12:00 +02:00
Nico Schottelius
d2fbd15655 ++version=2.0.11
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-23 14:17:49 +02:00
Nico Schottelius
4faad3926b merge changelog
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 21:15:45 +02:00
Nico Schottelius
612fb4cb7b fix type and add fixme
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:27:38 +02:00
Nico Schottelius
e05c5e699c always call umask 077 before doing stuff on the remote side
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:24:58 +02:00
Nico Schottelius
1b8b54f84f use os.umask locally
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:21:58 +02:00
Nico Schottelius
9b809ce9a2 Merge branch 'git-version' of https://github.com/evax/cdist
Conflicts:
	lib/cdist/__init__.py

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 15:35:11 +02:00
Nico Schottelius
9f319ae121 support passing remote_{exec, copy} to context
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 14:55:11 +02:00
Nico Schottelius
cd79d2b1eb ++version
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-18 16:41:51 +02:00
Evax Software
f1e8bfb8a7 improve version printing when run from a checkout 2012-05-15 09:58:45 +02:00
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>
2012-05-03 10:16:08 +02:00
Steven Armstrong
2ff286cf1d inherit dependencies from defining object when setting up implicit dependencies through autorequire
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-04-25 17:18:16 +02:00
Nico Schottelius
7d2799d958 Make __manifest usable in type manifests
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-04-04 17:21:54 +02:00
Nico Schottelius
04c768d51d lib: 2.0.9
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-12 20:20:56 +01:00
Nico Schottelius
ef4b217d43 Merge branch 'master' into exit_code_and_sigint_cleanup 2012-03-09 23:18:37 +01:00
Nico Schottelius
5f2f8e2bd2 no == true needed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-09 23:14:15 +01:00
Nico Schottelius
efd6a999b1 Merge remote-tracking branch 'mcodd/support_rsync_in_remote_copy' into exit_code_and_sigint_cleanup 2012-03-09 23:12:19 +01:00
Matt Coddington
3e6b866cae support rsync for remote copy 2012-03-09 15:43:49 -05:00
Nico Schottelius
5001e9cbe7 prevent tracebacks in tempfile code/initial manifest from stdin
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-03-07 13:01:11 +01:00
Nico Schottelius
edcb2363e9 ++version(2.0.8)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-20 11:18:37 +01:00
Nico Schottelius
27fb4374d3 Merge branch 'feature_boolean_parameter' of https://github.com/asteven/cdist 2012-02-16 11:04:50 +01:00
Nico Schottelius
64bb1741aa cleanup local
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:05:22 +01:00
Nico Schottelius
72fb77f135 extend not append
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:02:21 +01:00
Nico Schottelius
f031a40746 rebuild the command string
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 17:01:03 +01:00
Nico Schottelius
ab48a72ce1 return results from run()
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 16:25:18 +01:00
Nico Schottelius
a4882e7e30 remove useless script printing and reuse run() method
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-15 16:17:49 +01:00
Steven Armstrong
0760ff3c94 implement boolean parameters, forgotten files ;-)
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-15 14:44:16 +01:00
Steven Armstrong
362bdcdbdd implement boolean parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-15 13:57:45 +01:00
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>
2012-02-15 09:27:30 +01:00
Nico Schottelius
0082b7f07c allow objects to start with /, but not to contain //; sanitise after validation
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 12:41:13 +01:00
Nico Schottelius
861b13ffe4 record sanitised object, not the user supplied one, as requirement
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 11:12:17 +01:00
Nico Schottelius
c9ae06db64 do not setup __debug - let the user do if required - do not interfere type with core
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 16:27:41 +01:00
Nico Schottelius
d51a177a95 invent a generic CdistObjectError and point to definition source (easier debugging)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 16:22:14 +01:00
Nico Schottelius
0861276436 remove obsolete MissingEnvironmentVariableError()
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 16:14:48 +01:00
Nico Schottelius
f8868349e6 cdist_object.type => cdist_object.cdist_type
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 15:01:45 +01:00
Nico Schottelius
632146114c update copyright
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 14:30:27 +01:00
Nico Schottelius
e3ab8ef77b version increment
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 14:25:11 +01:00
Nico Schottelius
2d61070023 remove old IllegalRequirementError exception
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:47:40 +01:00
Nico Schottelius
2fce038423 correct catching exception to IllegalObjectIdError
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:43:42 +01:00
Nico Schottelius
f12a83f3dd -migration to CdistType error
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:41:12 +01:00
Nico Schottelius
0851af7d52 allow object_id to start and end with one /, fail with any //
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:39:04 +01:00
Nico Schottelius
8f75a9133f do not fail validation on empty object_id
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:38:36 +01:00
Nico Schottelius
a8e9b7feed :%s/cdist_object.type/cdist_object.cdist_type/g
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:55:42 +01:00
Nico Schottelius
2bc201614a :%s/cdist_object.type/cdist_object.cdist_type/g
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:54:09 +01:00
Nico Schottelius
1e5226e21c fix indention errors due to vim c&p
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:51:40 +01:00
Nico Schottelius
eadb62e67a minimal beaufity
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:44:09 +01:00
Nico Schottelius
dcd3bcee32 use the great method object_from_name() in emulator
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:57:51 +01:00