Commit graph

2625 commits

Author SHA1 Message Date
Nico Schottelius
4782c616f6 Merge remote-tracking branch 'steven/master' 2011-11-17 13:24:18 +01:00
Steven Armstrong
68f66af21a implement: accept parameters with dashes
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-17 13:04:39 +01:00
Steven Armstrong
56d783f612 tests and fixtures for type parameters with dashes
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-17 13:03:56 +01:00
Nico Schottelius
ff5fb5dbdb remove obsolete cdist video link (to be replaced with new video)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-16 08:10:50 +01:00
Nico Schottelius
d706e8ef03 more changes for 2.0.4
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-16 08:07:19 +01:00
Nico Schottelius
7d10560a61 Revert "pgrep -x -f is to restrictive -> impossible to guess/match"
It's not, regexp are your friends :-)

This reverts commit d7623fcf21.
2011-11-15 09:21:07 +01:00
Nico Schottelius
5efb921980 Merge remote-tracking branch 'steven/master' 2011-11-15 09:20:48 +01:00
Nico Schottelius
98ff723b24 add another example for __process
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-15 09:20:27 +01:00
Steven Armstrong
d7623fcf21 pgrep -x -f is to restrictive -> impossible to guess/match
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 23:18:44 +01:00
Steven Armstrong
b9301c8194 bugfix: process names dont start with slash
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 23:05:13 +01:00
Steven Armstrong
6dd1465aa8 --AttributeError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 15:29:07 +01:00
Steven Armstrong
1729516414 allow .cdist (OBJECT_MARKER) inside file names but not as _the_ file/folder name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:38:22 +01:00
Steven Armstrong
b92ea62f72 export OBJECT_MARKER for use in tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:36:40 +01:00
Steven Armstrong
e1cf8d094b --AttributeError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:29:36 +01:00
Steven Armstrong
ae23f1576f --TypeError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:28:51 +01:00
Steven Armstrong
f95ee8062f --SyntaxError
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-09 20:28:04 +01:00
Nico Schottelius
c7d0d581b1 we pass base_path, not object_path (clearification)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-09 18:41:46 +01:00
Nico Schottelius
b3337a18b9 in theory catch error when requiring an undefined object (in practise not)
Error message trying to fix:

ERROR: [Errno 2] No such file or directory: '/home/users/nico/.tmp/tmptvy1ic/out/object/__localch_yum_repos/singleton/.cdist/state'

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-09 18:30:12 +01:00
Steven Armstrong
45c9f629ae another more complete __remote_{copy,exec} example, including usage instructions for dispatching in .../manifest/init
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-08 13:29:11 +01:00
Nico Schottelius
e18bd97c86 SUCESSFUL is very helpful to grep for :-)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-08 08:28:04 +01:00
Steven Armstrong
dad14af100 add example for __remote_{copy,exec} scripts using schroot over ssh on remote host
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 22:37:05 +01:00
Steven Armstrong
f864d307be +licence, +logging
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 22:35:06 +01:00
Steven Armstrong
360a03a349 add examples for __remote_{copy,exec} scripts
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 17:21:14 +01:00
Steven Armstrong
d0123acc2a implement singleton as requirement
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 15:44:51 +01:00
Steven Armstrong
efedfbf47c test for singleton requirement
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-03 15:44:12 +01:00
Nico Schottelius
ddebf5b153 __cron for 2.0.4
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-03 10:37:10 +01:00
Nico Schottelius
bb4178480e Merge remote-tracking branch 'steven/__cron' 2011-11-02 17:06:51 +01:00
Steven Armstrong
fa95291cbc use diff instad of cmp
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 16:46:50 +01:00
Nico Schottelius
77b1c676ca +/- todo
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-02 16:41:56 +01:00
Nico Schottelius
e2349426ab Merge remote-tracking branch 'steven/__cron' 2011-11-02 16:40:13 +01:00
Steven Armstrong
f42dbb9103 --todo
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 16:39:52 +01:00
Nico Schottelius
f517f2667d Merge remote-tracking branch 'steven/initial-manifest-from-stdin' 2011-11-02 16:37:19 +01:00
Steven Armstrong
e195eb46c4 new type __cron: installs and manages cron jobs
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 16:30:35 +01:00
Steven Armstrong
b8435b2fd2 Merge branch 'initial-manifest-from-stdin' into __cron 2011-11-02 15:52:36 +01:00
Steven Armstrong
e36e538f81 sort lists before testing for equality
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 09:15:44 +01:00
Steven Armstrong
792ddf0a5b add utility method to join object name from type and object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 09:13:23 +01:00
Steven Armstrong
afba5e9280 add utilitly method to split an object name into its type name and object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 07:52:08 +01:00
Steven Armstrong
70ee0f1681 implement __lt__ to support sorting a list of objects
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-01 22:46:46 +01:00
Steven Armstrong
bf1b995908 implement __lt__ and __eq__ to support sorting a list of types
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-01 22:20:46 +01:00
Steven Armstrong
7b9ff27356 Merge remote-tracking branch 'telmich/master' 2011-10-31 22:21:10 +01:00
Nico Schottelius
d6d4d374bd remove unecessary whitespace :-)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-31 18:26:36 +01:00
Steven Armstrong
5ac857a87c realy, dont fail if lsb_release does not exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 16:20:48 +01:00
Steven Armstrong
d4aa04f35d dont fail if lsb_release does not exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 16:16:10 +01:00
Steven Armstrong
b38262f858 implement reading initial manifest from stdin
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 16:07:33 +01:00
Steven Armstrong
de84542579 no lsb_release -> no output
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 14:36:58 +01:00
Steven Armstrong
7641c04438 +fancy-ideas
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 13:40:39 +01:00
Steven Armstrong
9fedf314cf add explorers for lsb_*
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 11:09:42 +01:00
Nico Schottelius
80cd35fc3d Merge remote-tracking branch 'steven/run-explorers-in-cdist.core.explorer' 2011-10-21 20:19:41 +02:00
Steven Armstrong
4775c93a6e use __remote_copy in __file type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 16:01:39 +02:00
Steven Armstrong
18f08d893c export defaults for __remote_{exec,copy}
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:59:39 +02:00