Darko Poljak
6f28fc2db2
Fix ssh mux socket file error.
...
ssh ControlPath socket file needs to be unique for each host.
To avoid using ssh ControlPath option placeholders move socket file
to host's temp directory. Since each host has unique temp
directory then, although file name for socket file is fixed, its path
is unique.
9 years ago
Darko Poljak
64efa04599
pep8
9 years ago
Darko Poljak
fa5175fee5
Allow both hosts sources: command line args and file.
9 years ago
Darko Poljak
4fce4a631c
Add -f option for reading hosts from file or stdin.
9 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
Nico Schottelius
0cf170b18e
prettier print when requirements are broken
...
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
10 years ago
Nico Schottelius
c363fc24de
begin to make OBJECT_MARKER dynamic
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
16d51b3cf1
backport ignoring install types in config mode from install_integration branch
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Steven Armstrong
fcfd2d0a3c
refactor so that there is no interaction between code-local and code-remote
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
a3dea70a97
Revert "first generate and execute *-local, then *-remote"
...
This reverts commit cf22499538266b1b4fac1694254edfd8ba9be68d.
11 years ago
Steven Armstrong
12ef3ca4d2
first generate and execute *-local, then *-remote
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
589d50bdba
make --dry-run work, fixes #199
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Nico Schottelius
760b7e7afb
++changes(2.3.2)
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 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>
12 years ago
Nico Schottelius
2403fc59ee
refactor commandline: merge into its own class (and add first shell code)
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
c9f728e073
lib/cdist => cdist (pypi)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
ea146c88e7
cleanup config
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
71ed728b4a
move parallel code to main binary, allow branching out on install and config
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
e5e2fb866c
++fixes
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
ca5361afc1
remote cdist.path, use base_dir
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
d07a191867
add logger to config
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
60b5f8783c
revert changes from upcoming install branch
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
26278b1e32
expose target host from config
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
5a7e4b2f32
quiet ssh/scp
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
df630e1fdf
user remote_prefix=True now
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
ecc4fc10d7
setup __remote_exec and __remote_copy variables
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
b3f914f6f6
create base module for install and config
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
26c0d5d9aa
upcoming changes for 2.0.3
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
d8da7635de
use warning loglevel by default
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
b52939ccfe
only debug if __debug is setup
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
a165585699
pass __debug to manifest
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
ccbd0f1d84
introduce config.link_emulator() to be called from test
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
cc87573d6b
remove lecagy cdist-type-emulator support
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
6f1a13b531
move emulator link to emulator module and make source variable (exec_path)
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
fc1e0d9f1f
remove exec bits from copying
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
35e33570d1
also move out config
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
0197f8da13
more cleanups from refactoring
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
6d75016139
make type emulator load again
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
4eec4d9627
only setup library path in main, not emulator
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
3f6c479d72
move TYPE_PREFIX back into main, as it's only needed there and should work without module
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
16d58dcac7
move out banner, fail at emulator
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
e6a903fd96
cleanup logger stuff, remove more path stuff from cdist bin
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
8f2e5bb8c8
cleanup and move error class to init
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
8af45f83b2
rearange remote_user
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
e14848ec1f
remove run* from cdist and put it into lib/exec
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
d4406cece3
begin to replace first function with path module
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
79173488ff
cdist runs with path module loaded (unusued though)
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
6139fab354
import cdist.path works
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Nico Schottelius
8e59f97800
begin to used cdist.path
...
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
13 years ago
Steven Armstrong
91022c3f7e
handle ioerror if script does not exist
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
13 years ago