diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-08-01 15:12:05 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-08-01 15:12:05 -0400 |
commit | 244680b7bb551b4791584b4dd1373cc6e40c46c4 (patch) | |
tree | 10a9ea80108d3ddac1a3725ab9ccf2f893659826 /cobbler/api.py | |
parent | 1af8a3da4437bbd4bc82498749eb93624b2e741c (diff) | |
download | third_party-cobbler-244680b7bb551b4791584b4dd1373cc6e40c46c4.tar.gz third_party-cobbler-244680b7bb551b4791584b4dd1373cc6e40c46c4.tar.xz third_party-cobbler-244680b7bb551b4791584b4dd1373cc6e40c46c4.zip |
Added feature where a network install location can be given to do cobbler imports without
mirroring. This is explained in the manpage and online docs.
Diffstat (limited to 'cobbler/api.py')
-rw-r--r-- | cobbler/api.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cobbler/api.py b/cobbler/api.py index bd597b2..6268283 100644 --- a/cobbler/api.py +++ b/cobbler/api.py @@ -177,12 +177,17 @@ class BootAPI: statusifier = action_status.BootStatusReport(self._config, mode) return statusifier.run() - def import_tree(self,mirror_url,mirror_name): + def import_tree(self,mirror_url,mirror_name,network_root=None): """ Automatically import a directory tree full of distribution files. - mirror_url can be a string that represents a path, a user@host syntax for SSH, or an rsync:// address - """ - importer = action_import.Importer(self, self._config, mirror_url, mirror_name) + mirror_url can be a string that represents a path, a user@host + syntax for SSH, or an rsync:// address. If mirror_url is a + filesystem path and mirroring is not desired, set network_root + to something like "nfs://path/to/mirror_url/root" + """ + importer = action_import.Importer( + self, self._config, mirror_url, mirror_name, network_root + ) return importer.run() def serialize(self): |