forked from ungleich-public/cdist
use context in cdist/bin
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
d690fb30cb
commit
29bb5f383c
1 changed files with 8 additions and 4 deletions
12
bin/cdist
12
bin/cdist
|
@ -115,10 +115,14 @@ def configinstall(args, mode):
|
||||||
time_start = time.time()
|
time_start = time.time()
|
||||||
|
|
||||||
for host in args.host:
|
for host in args.host:
|
||||||
c = mode(host,
|
context = cdist.context.Context(
|
||||||
initial_manifest=args.manifest,
|
target_host=host,
|
||||||
base_path=args.cdist_home,
|
initial_manifest=args.manifest,
|
||||||
debug=args.debug)
|
base_path=args.cdist_home,
|
||||||
|
exec_path=sys.argv[0],
|
||||||
|
debug=args.debug)
|
||||||
|
|
||||||
|
c = mode(context)
|
||||||
if args.parallel:
|
if args.parallel:
|
||||||
log.debug("Creating child process for %s", host)
|
log.debug("Creating child process for %s", host)
|
||||||
process[host] = multiprocessing.Process(target=c.deploy_and_cleanup)
|
process[host] = multiprocessing.Process(target=c.deploy_and_cleanup)
|
||||||
|
|
Loading…
Reference in a new issue