diff options
-rw-r--r-- | func/minion/modules/virt.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py index c4b718a..ba5759e 100644 --- a/func/minion/modules/virt.py +++ b/func/minion/modules/virt.py @@ -202,7 +202,7 @@ class Virt(func_module.FuncModule): return memory - def install(self, server_name, target_name, system=False, virt_name=None, virt_path=None): + def install(self, server_name, target_name, system=False, virt_name=None, virt_path=None, graphics=False): """ Install a new virt system by way of a named cobbler profile. @@ -236,6 +236,9 @@ class Virt(func_module.FuncModule): if virt_path: koan_args.append("--virt-path=%s" % virt_path) + if not graphics: + koan_args.append("--nogfx") + rc = sub_process.call(koan_args,shell=False,close_fds=True) if rc == 0: return 0 |