Commit graph

272 commits

Author SHA1 Message Date
Nico Schottelius
39b2976f9a in theory, finish bin/cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 21:24:21 +01:00
Nico Schottelius
16ac8117b2 cleanup much of bin/cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 17:28:14 +01:00
Nico Schottelius
e599e1684c continue on bin/cdist-object-explorer-all, make scp silent
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 16:33:08 +01:00
Nico Schottelius
241548c6ec cleanup, -debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:43:53 +01:00
Nico Schottelius
97ab2066d4 verify: __object_id and __object work in cdist-manifest-run-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:40:34 +01:00
Nico Schottelius
24ce08820e export __object and __object_id
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:34:17 +01:00
Nico Schottelius
ce15edf4d6 do not allow to pass arguments to bin/cdist-manifest-run anymore - use env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:23:36 +01:00
Nico Schottelius
bfb1cee403 export __cdist_output_dir __cdist_manifest for bin/cdist-type-emulator
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:19:38 +01:00
Nico Schottelius
3fdb5a2e24 successfully implement __target_host
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:14:00 +01:00
Nico Schottelius
93253f7fda export __target_host
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:05:31 +01:00
Nico Schottelius
212260b46d cleanup cdist-explorer-run-init, export __explorers to general explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:51:49 +01:00
Nico Schottelius
7d766d5376 export __manifests
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:47:52 +01:00
Nico Schottelius
7db5a80831 rename cdist-manifest-init to cdist-manifest-run-init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:40:30 +01:00
Nico Schottelius
40752d4ac4 remove autoexport from cdist-config
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:28:29 +01:00
Nico Schottelius
f5eccb2cb1 introduce new variable names and use __explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:24:47 +01:00
Nico Schottelius
e2ecdd92ab remove almost obsolete bin/cdist-explorer-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:15:02 +01:00
Nico Schottelius
06ce87a289 begin to cleanup bin/cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 10:06:56 +01:00
Nico Schottelius
3af305b1fc -debug in cdist-manifest-run-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 09:41:53 +01:00
Nico Schottelius
57c60a40a8 make cdist-manifest-run change the working dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 09:37:31 +01:00
Nico Schottelius
5a7ffff077 document bug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 19:25:41 +01:00
Nico Schottelius
c98b84ba4b have conf/ and out/ locally, similar to the remote side
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 19:11:45 +01:00
Nico Schottelius
957ab446fa introduce __cdist_local_base_dir and use it in HACKERS_README
This way out/ and conf/ are debugable.

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 19:05:46 +01:00
Nico Schottelius
e6c4533464 BREAK: rename __cdist_config to __cdist_conf_dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 19:01:29 +01:00
Nico Schottelius
c9a146a2a2 +2011 :-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:42:30 +01:00
Nico Schottelius
0b94a11d27 implement the rename to cdist-type-build-emulation in cdist-manifest-run and cleanups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:40:58 +01:00
Nico Schottelius
0bf48923a9 change explorer to use locally available path
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:36:02 +01:00
Nico Schottelius
fde8b2b1b9 out does not need _dir in the fs
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:30:06 +01:00
Nico Schottelius
978ed2c75f also submit working directory
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:25:25 +01:00
Nico Schottelius
f58f1c91e4 write to explorer name
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:24:51 +01:00
Nico Schottelius
609b92b661 update to new binaries
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:17:15 +01:00
Nico Schottelius
45237ec5ae conf != out
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:13:08 +01:00
Nico Schottelius
2e0d1b78fb rename: cdist-remote-* = remote
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:10:26 +01:00
Nico Schottelius
50c533bac3 add cdist-remote-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:04:29 +01:00
Nico Schottelius
926a307234 transfer all cdist binaries to the target, may be helpful
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 17:55:35 +01:00
Nico Schottelius
b81101ac47 begin introduction of cdist-helper-exec
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:51:47 +01:00
Nico Schottelius
9c9d3b33cf update cdist-explorer-run to almost run again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:49:39 +01:00
Nico Schottelius
995bf8d963 a giant commit into the future
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:45:38 +01:00
Nico Schottelius
6ffd99fe67 cleanup and break bin/cdist-deploy-to
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:25:41 +01:00
Nico Schottelius
84ede1ae29 cleanup cdist config, remove cache, add out_dir and conf_dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:19:41 +01:00
Nico Schottelius
d7299b8ab1 begin to integrate out_dir in cdist_config
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:10:36 +01:00
Nico Schottelius
17838de1ef remove exports from cdist-config, let subscribts take care about that, add out_dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:01:18 +01:00
Nico Schottelius
5957de201b wait for correct count of args in bin/cdist-dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 15:53:51 +01:00
Nico Schottelius
5d881f226a superseed cdist-dir-push with cdist-dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 15:50:33 +01:00
Nico Schottelius
d8cb6d58f7 finish bin/cdist-dir-push
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 15:42:14 +01:00
Nico Schottelius
243556a69f add template for cdist-dir-push
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 15:32:17 +01:00
Nico Schottelius
de71c881a2 begin to include parameter copy to remote host
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 10:24:20 +01:00
Nico Schottelius
91b4b163cd save parameters below parameters/ in the object
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 10:21:43 +01:00
Nico Schottelius
ce69491c34 sed -i 's/__cdist_name_type_params/__cdist_name_params/g'
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 10:12:26 +01:00
Nico Schottelius
b222b79407 add some help output in cdist-explorer-run for bogus situations
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 10:04:12 +01:00
Nico Schottelius
d58d13910b explorers integrated, but parameters are not accessable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 10:01:23 +01:00
Nico Schottelius
0835e68766 also pass object_id to cdist-explorer-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:56:25 +01:00
Nico Schottelius
a12df5ce7c create __cdist_object_id_from_object and use it + __cdist_type_from_object in cdist-manifest-run-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:50:30 +01:00
Nico Schottelius
51669874a7 extend cdist-explorer-run to accept arguments for explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:37:07 +01:00
Nico Schottelius
53b51b0ead Merge branch 'master' into types_explorer 2011-02-23 09:24:25 +01:00
Nico Schottelius
a2992f0c6e be consistent and use __cdist_name_type_params as temp subdir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:22:38 +01:00
Nico Schottelius
bf94bd1aab no need to export variables
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:20:34 +01:00
Nico Schottelius
9a3d3bf489 s/opt_file/optional/
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:17:33 +01:00
Nico Schottelius
9bdfeb6198 exit after object explorer run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:14:14 +01:00
Nico Schottelius
9761239f6c in theory finish bin/cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:02:57 +01:00
Nico Schottelius
76057615b3 and rename to __cdist_type_explorer_dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:21:32 +01:00
Nico Schottelius
db40e6c1a1 add __cdist_type_explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:21:11 +01:00
Nico Schottelius
391b5d7dc0 begin cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:19:16 +01:00
Nico Schottelius
2c5356ba9c introduce __cdist_type_from_object
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:17:55 +01:00
Nico Schottelius
2fc8c2c4ce add template for cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:12:34 +01:00
Nico Schottelius
616fd954e8 no export needed, so remove it
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:08:45 +01:00
Nico Schottelius
5cfaad9d7a copy all explorers, so they can reference themselves
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:04:36 +01:00
Nico Schottelius
10bdef0edd HUGE CLEANUP
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 23:21:25 +01:00
Nico Schottelius
e168454d1b Revert "Revert "finish generic cdist-explorer-run""
Revert the reverts - now we're in the feature branch.

This reverts commit c429177db4.
2011-02-22 23:10:47 +01:00
Nico Schottelius
10b7a7ab8a Revert "Revert "integrate bin/cdist-explorer-coordinator into cdist-explorer-run""
Revert the reverts - now we're in the feature branch.

This reverts commit 6ba577b3fd.
2011-02-22 23:10:43 +01:00
Nico Schottelius
a0fd43d0a8 Revert "Revert "begin to create a general cdist-explorer-run""
Revert the reverts - now we're in the feature branch.

This reverts commit c14df05fbe.
2011-02-22 23:10:38 +01:00
Nico Schottelius
d72c5e1f69 Revert "Revert "add template for bin/cdist-explorer-run-global""
Revert the reverts - now we're in the feature branch.

This reverts commit 2aa4487038.
2011-02-22 23:10:35 +01:00
Nico Schottelius
2aa4487038 Revert "add template for bin/cdist-explorer-run-global"
Do not begin new features in master branch.

This reverts commit 2d7f155d1d.
2011-02-22 23:08:23 +01:00
Nico Schottelius
c14df05fbe Revert "begin to create a general cdist-explorer-run"
Do not begin new features in master branch.

This reverts commit dfca442267.
2011-02-22 23:08:19 +01:00
Nico Schottelius
6ba577b3fd Revert "integrate bin/cdist-explorer-coordinator into cdist-explorer-run"
Do not begin new features in master branch.

This reverts commit 3a015dc39a.
2011-02-22 23:08:13 +01:00
Nico Schottelius
c429177db4 Revert "finish generic cdist-explorer-run"
Do not begin new features in master branch.

This reverts commit 2a8b20b11a.
2011-02-22 23:07:54 +01:00
Nico Schottelius
0658ad06c3 Revert "rename cdist-explorer-run-global -> cdist-explorer-run-init"
Do not begin new features that break in master branch.

This reverts commit b556ab557d.
2011-02-22 23:07:01 +01:00
Nico Schottelius
30919f126b exit 0, but warn if gencode is not executable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 22:40:34 +01:00
Nico Schottelius
8414f94703 Merge remote-tracking branch 'sans/master' 2011-02-22 22:37:22 +01:00
Steven Armstrong
5a0f7d6a0e need non-error exit code in cdist-object-codegen or it stops the whole execution chain
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-02-22 22:16:01 +01:00
Nico Schottelius
b556ab557d rename cdist-explorer-run-global -> cdist-explorer-run-init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 21:34:41 +01:00
Nico Schottelius
2a8b20b11a finish generic cdist-explorer-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 21:34:05 +01:00
Nico Schottelius
3a015dc39a integrate bin/cdist-explorer-coordinator into cdist-explorer-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 21:18:43 +01:00
Nico Schottelius
dfca442267 begin to create a general cdist-explorer-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 21:11:18 +01:00
Nico Schottelius
b6a143143d cleanup + introduce __cdist_remote_user
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 20:40:54 +01:00
Nico Schottelius
2d7f155d1d add template for bin/cdist-explorer-run-global
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 20:22:58 +01:00
Nico Schottelius
40068d68de s/||/&&/
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 13:18:42 +01:00
Nico Schottelius
1f5fee5bad always prepend header in gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 13:09:58 +01:00
Nico Schottelius
63f702ceae remove slash before marker
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 13:04:41 +01:00
Nico Schottelius
f7e18d94ec submit object_id in gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 11:55:11 +01:00
Nico Schottelius
2e0cdf73d9 add cd to cdist-manifest-run-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 11:54:50 +01:00
Nico Schottelius
8c5a64cd92 support manifest args in cdist-manifest-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 11:47:43 +01:00
Nico Schottelius
5dcb719844 introduce and use __cdist_exec_fail_on_error
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 11:39:23 +01:00
Nico Schottelius
da8abcb770 -c
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 11:33:34 +01:00
Nico Schottelius
35387cbc61 add __cdist_exec_fail_on_error
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 11:31:37 +01:00
Nico Schottelius
4664643f13 begin to use cdist-quickstart(1)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-20 02:07:56 +01:00
Nico Schottelius
15fa6f76e6 -debug from cdist-config
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-19 12:58:32 +01:00
Nico Schottelius
aec77a05ae cdist-config broken
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-17 17:46:18 +01:00
Nico Schottelius
145daf87e6 exit on unset variables
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-17 17:44:54 +01:00
Nico Schottelius
6d38ae5f11 shrink hackers readme, allow cdist-deploy-to to be hacked
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-17 16:50:44 +01:00
Nico Schottelius
bd026bad18 define variables to be exported to types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-17 16:42:59 +01:00