Merge pull request #534 from asteven/feature/remote-out-dir
need a way to set remote.base_path from the command line
This commit is contained in:
commit
f53615f583
3 changed files with 10 additions and 1 deletions
|
@ -169,6 +169,10 @@ def get_parsers():
|
||||||
'-p', '--parallel',
|
'-p', '--parallel',
|
||||||
help='operate on multiple hosts in parallel',
|
help='operate on multiple hosts in parallel',
|
||||||
action='store_true', dest='parallel')
|
action='store_true', dest='parallel')
|
||||||
|
parser['config_args'].add_argument(
|
||||||
|
'-r', '--remote-out-dir',
|
||||||
|
help='Directory to save cdist output in on the target host',
|
||||||
|
dest="remote_out_path")
|
||||||
parser['config_args'].add_argument(
|
parser['config_args'].add_argument(
|
||||||
'-s', '--sequential',
|
'-s', '--sequential',
|
||||||
help='operate on multiple hosts sequentially (default)',
|
help='operate on multiple hosts sequentially (default)',
|
||||||
|
|
|
@ -228,7 +228,8 @@ class Config(object):
|
||||||
remote = cdist.exec.remote.Remote(
|
remote = cdist.exec.remote.Remote(
|
||||||
target_host=target_host,
|
target_host=target_host,
|
||||||
remote_exec=remote_exec,
|
remote_exec=remote_exec,
|
||||||
remote_copy=remote_copy)
|
remote_copy=remote_copy,
|
||||||
|
base_path=args.remote_out_path)
|
||||||
|
|
||||||
c = cls(local, remote, dry_run=args.dry_run, jobs=args.jobs)
|
c = cls(local, remote, dry_run=args.dry_run, jobs=args.jobs)
|
||||||
c.run()
|
c.run()
|
||||||
|
|
|
@ -115,6 +115,10 @@ Configure/install one or more hosts.
|
||||||
|
|
||||||
Operate on multiple hosts in parallel
|
Operate on multiple hosts in parallel
|
||||||
|
|
||||||
|
.. option:: -r, --remote-out-dir
|
||||||
|
|
||||||
|
Directory to save cdist output in on the target host
|
||||||
|
|
||||||
.. option:: -s, --sequential
|
.. option:: -s, --sequential
|
||||||
|
|
||||||
Operate on multiple hosts sequentially (default)
|
Operate on multiple hosts sequentially (default)
|
||||||
|
|
Loading…
Reference in a new issue