|
|
@ -32,6 +32,7 @@ import tempfile |
|
|
|
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) |
|
|
|
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) |
|
|
|
CONF_DIR = os.path.join(BASE_DIR, "conf") |
|
|
|
CONF_DIR = os.path.join(BASE_DIR, "conf") |
|
|
|
GLOBAL_EXPLORER_DIR = os.path.join(CONF_DIR, "explorer") |
|
|
|
GLOBAL_EXPLORER_DIR = os.path.join(CONF_DIR, "explorer") |
|
|
|
|
|
|
|
LIB_DIR = os.path.join(BASE_DIR, "lib") |
|
|
|
MANIFEST_DIR = os.path.join(CONF_DIR, "manifest") |
|
|
|
MANIFEST_DIR = os.path.join(CONF_DIR, "manifest") |
|
|
|
|
|
|
|
|
|
|
|
REMOTE_BASE_DIR = "/var/lib/cdist" |
|
|
|
REMOTE_BASE_DIR = "/var/lib/cdist" |
|
|
@ -220,7 +221,7 @@ if __name__ == "__main__": |
|
|
|
log.debug(args) |
|
|
|
log.debug(args) |
|
|
|
|
|
|
|
|
|
|
|
for host in args.host: |
|
|
|
for host in args.host: |
|
|
|
c = Cdist(host) |
|
|
|
c = Cdist(host, initial_manifest=args.manifest) |
|
|
|
c.deploy_to() |
|
|
|
c.deploy_to() |
|
|
|
c.cleanup() |
|
|
|
c.cleanup() |
|
|
|
except KeyboardInterrupt: |
|
|
|
except KeyboardInterrupt: |
|
|
|