From 2490b983ba5e7b76504de5fc6bae3a5e542c8974 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 11 Sep 2011 23:42:53 +0200 Subject: [PATCH] ++todo Signed-off-by: Nico Schottelius --- bin/cdist | 7 +++++-- doc/dev/todo/TAKEME | 2 -- doc/dev/todo/niconext | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bin/cdist b/bin/cdist index bb6e38fa..6da7d04c 100755 --- a/bin/cdist +++ b/bin/cdist @@ -99,7 +99,7 @@ def banner(): class Cdist: """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.remote_prefix = ["ssh", "root@" + self.target_host] @@ -593,6 +593,9 @@ if __name__ == "__main__": parser.add_argument('-b', '--banner', help='Show cdist 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', action='store_true') parser.add_argument('-i', '--initial-manifest', @@ -617,7 +620,7 @@ if __name__ == "__main__": log.debug(args) 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.cleanup() except KeyboardInterrupt: diff --git a/doc/dev/todo/TAKEME b/doc/dev/todo/TAKEME index e67469ce..5439a1b9 100644 --- a/doc/dev/todo/TAKEME +++ b/doc/dev/todo/TAKEME @@ -44,5 +44,3 @@ DOCUMENTATION - asciidoc interprets __, which we use for variables names -> seek through docs and replace with \_\_! - reference explorers in cdist-reference! -- compare running times: - one, 5, 10, 50, 100, 1000 hosts => how does cdist scale? diff --git a/doc/dev/todo/niconext b/doc/dev/todo/niconext index a4c23e8b..f8535c07 100644 --- a/doc/dev/todo/niconext +++ b/doc/dev/todo/niconext @@ -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! -> does not matter for now!