Darko Poljak
bdee7273af
Configfile ( #559 )
...
Add cdist configuration/config file support.
7 years ago
Darko Poljak
f368539447
Some pylint cleaning.
7 years ago
Philippe Gregoire
61b52ac806
Set default remote_cmds_cleanup_pattern
...
Fixes an exception when --remote-copy and --remote-exec are used.
8 years ago
Philippe Gregoire
7b0b3d9415
Fix remote cmds cleanup
...
When --remote-copy and --remote-exec are provided,
args.remote_cmds_cleanup_pattern is not set.
This patches fixes the evaluation of args.remote_cmds_cleanup_pattern
and prevents cdist from throwing an exception when --remote-copy
and --remote-exec are used.
8 years ago
Darko Poljak
75fe3272b3
Add file locking for -j parallel execution.
8 years ago
Darko Poljak
68cb13881f
Add archiving support.
8 years ago
Darko Poljak
0d734c872d
Fix log var assignment.
8 years ago
Darko Poljak
23fbabe303
Further improve parallel execution.
8 years ago
Darko Poljak
d1a044cc23
multiprocessing.Pool -> concurrent.futures.ProcessPoolExecutor
8 years ago
Darko Poljak
7c7a98d083
pep8
8 years ago
Darko Poljak
0af64c01bf
Add -p HOST_MAX argument.
8 years ago
Darko Poljak
e2a1519332
Merge inventory from beta branch.
8 years ago
Darko Poljak
a20b7167cd
pep8
8 years ago
Darko Poljak
126a1812a5
Fix parallel object prepare and run steps. Add nonparallel type marker.
8 years ago
Darko Poljak
9c914308f6
Fix ssh connection multiplexing race condition #542
...
Increase ControlPersist to 2h.
After host run run ssh mux master exit command.
If custom remote exec/copy is specified then do nothing.
8 years ago
Steven Armstrong
9fe2420547
also log start of config run
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
a1d73f7281
log changing object as Processing instead of Updating
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
f6e1174adb
start moving info log messages to verbose
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Darko Poljak
a37d286d67
Suppress subprocess script output in quiet mode.
8 years ago
Darko Poljak
a722f3c634
3rd iteration of logging cleanup.
8 years ago
Darko Poljak
248656b81f
First iteration of logging cleanup.
8 years ago
Darko Poljak
138705e3dc
Code improvements.
8 years ago
Darko Poljak
2a9bd77550
Merge custom cache path pattern from beta branch.
8 years ago
Steven Armstrong
93ccf925cd
need a way to set remote.base_path from the command line
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Darko Poljak
29bebc4af4
Shorten ssh control path.
...
On macos the path is too long due to long default TMP dir.
8 years ago
Darko Poljak
e5a6599ccb
Create mp_pool_run helper function for running in parallel.
8 years ago
Darko Poljak
8776a2ee06
concurrent.futures -> multiprocessing
8 years ago
Darko Poljak
e6b9fc90ba
Add log messages.
8 years ago
Darko Poljak
ca3a8ddf67
no clear() in python < 3.3; if only one then do it sequentially
8 years ago
Darko Poljak
1952d43073
Initial try for parallelization.
8 years ago
Darko Poljak
341de216a6
Fix missing vars.
8 years ago
Darko Poljak
6c1b215db8
Begin parallelizing object prepare and run.
8 years ago
Darko Poljak
e6fc74c081
ugly -> bad
8 years ago
Darko Poljak
8c53ce78f5
Started the good, the bad and the ugly - code cleanup.
8 years ago
Darko Poljak
9268062de5
Fix target_host vars in Code.
8 years ago
Darko Poljak
74652cec13
Write more informative warning messages.
8 years ago
Darko Poljak
b5262c850e
Exit cleanly in case of non UTF-8 file.
9 years ago
Darko Poljak
7f1e41f769
Move hostfile line processing to new method.
9 years ago
Darko Poljak
7aa4b2d40a
Support comments in hostfile, skip empty lines.
9 years ago
Darko Poljak
680806ce76
Fix getting host_name and host_fqdn.
9 years ago
Darko Poljak
2fb551131e
Fix error when non-existing host is used.
9 years ago
Darko Poljak
fdf6a6570c
Check for beta in scripts/cdist.
9 years ago
Darko Poljak
1c07b63f1d
Add -b/--enable-beta option for enabling beta functionalities.
9 years ago
Darko Poljak
a4c49201c0
Add jobs option for parallel execution, global explorers first.
9 years ago
Darko Poljak
45298b810c
Add more comments.
9 years ago
Darko Poljak
dbcc94ab65
Add derived env vars for target hostname and fqdn.
9 years ago
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