summaryrefslogtreecommitdiffstats
path: root/deploy/daisy_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/daisy_server.py')
-rw-r--r--deploy/daisy_server.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy/daisy_server.py b/deploy/daisy_server.py
index eb711afd..a899ea2b 100644
--- a/deploy/daisy_server.py
+++ b/deploy/daisy_server.py
@@ -10,7 +10,9 @@
import os
import paramiko
import scp
+import tempfile
import time
+import yaml
from utils import (
WORKSPACE,
@@ -230,6 +232,13 @@ class DaisyServer(object):
net_file=path_join(self.remote_dir, self.net_file_name))
self.ssh_run(cmd, check=True)
+ def copy_new_deploy_config(self, data):
+ (dummy, conf_file) = tempfile.mkstemp()
+ with open(conf_file, 'w') as fh:
+ fh.write(yaml.safe_dump(data))
+ fh.flush()
+ self.scp_put(conf_file, path_join(self.remote_dir, self.deploy_file_name))
+
def prepare_host_and_pxe(self):
LI('Prepare host and PXE')
cmd = "python {script} --dha {deploy_file} --network {net_file} --host \'yes\' --isbare {is_bare} --scenario {scenario}".format(