++todo
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
9a0b57c4b5
commit
2490b983ba
3 changed files with 9 additions and 4 deletions
|
@ -99,7 +99,7 @@ def banner():
|
||||||
class Cdist:
|
class Cdist:
|
||||||
"""Cdist main class to hold arbitrary data"""
|
"""Cdist main class to hold arbitrary data"""
|
||||||
|
|
||||||
def __init__(self, target_host, initial_manifest=False, remote_user="root"):
|
def __init__(self, target_host, initial_manifest=False, remote_user="root", home=None):
|
||||||
self.target_host = target_host
|
self.target_host = target_host
|
||||||
self.remote_prefix = ["ssh", "root@" + self.target_host]
|
self.remote_prefix = ["ssh", "root@" + self.target_host]
|
||||||
|
|
||||||
|
@ -593,6 +593,9 @@ if __name__ == "__main__":
|
||||||
parser.add_argument('-b', '--banner',
|
parser.add_argument('-b', '--banner',
|
||||||
help='Show cdist banner',
|
help='Show cdist banner',
|
||||||
action='store_true', dest='banner')
|
action='store_true', dest='banner')
|
||||||
|
parser.add_argument('-c', '--cdist-home',
|
||||||
|
help='Change cdist home (default: .. from bin directory)',
|
||||||
|
action='store_true', dest='cdist_home')
|
||||||
parser.add_argument('-d', '--debug', help='Set log level to debug',
|
parser.add_argument('-d', '--debug', help='Set log level to debug',
|
||||||
action='store_true')
|
action='store_true')
|
||||||
parser.add_argument('-i', '--initial-manifest',
|
parser.add_argument('-i', '--initial-manifest',
|
||||||
|
@ -617,7 +620,7 @@ if __name__ == "__main__":
|
||||||
log.debug(args)
|
log.debug(args)
|
||||||
|
|
||||||
for host in args.host:
|
for host in args.host:
|
||||||
c = Cdist(host, initial_manifest=args.manifest)
|
c = Cdist(host, initial_manifest=args.manifest, home=args.cdist_home)
|
||||||
c.deploy_to()
|
c.deploy_to()
|
||||||
c.cleanup()
|
c.cleanup()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
|
@ -44,5 +44,3 @@ DOCUMENTATION
|
||||||
- asciidoc interprets __, which we use for variables
|
- asciidoc interprets __, which we use for variables
|
||||||
names -> seek through docs and replace with \_\_!
|
names -> seek through docs and replace with \_\_!
|
||||||
- reference explorers in cdist-reference!
|
- reference explorers in cdist-reference!
|
||||||
- compare running times:
|
|
||||||
one, 5, 10, 50, 100, 1000 hosts => how does cdist scale?
|
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
|
- Remove all FIXME entries
|
||||||
|
- Write cdist-manpage
|
||||||
|
- Remove obsolete manpages
|
||||||
|
- Support different home instead of ../
|
||||||
- Bug: os.path.join() may be wrong for the remote side!
|
- Bug: os.path.join() may be wrong for the remote side!
|
||||||
-> does not matter for now!
|
-> does not matter for now!
|
||||||
|
|
Loading…
Reference in a new issue