summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG1
-rw-r--r--cobbler/action_replicate.py4
-rw-r--r--docs/cobbler.pod8
3 files changed, 12 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 049ead85..95156a5c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -3,6 +3,7 @@ Cobbler CHANGELOG
- Mon May 12 2008 - 0.9.2
- run createrepo with less preconditions during cobbler reposync
+- doc upgrades and error handling for "cobbler replicate"
- Fri May 09 2008 - 0.9.1
- patch to allow yumopts to override gpgcheck
diff --git a/cobbler/action_replicate.py b/cobbler/action_replicate.py
index 139f18f6..ae3adc84 100644
--- a/cobbler/action_replicate.py
+++ b/cobbler/action_replicate.py
@@ -17,6 +17,7 @@ import os
import os.path
import xmlrpclib
import api as cobbler_api
+from utils import _
class Replicate:
def __init__(self,config):
@@ -150,7 +151,8 @@ class Replicate:
self.uri = 'http://%s/cobbler_api' % cobbler_master
elif len(self.settings.cobbler_master) > 0:
self.uri = 'http://%s/cobbler_api' % self.settings.cobbler_master
-
+ else:
+ print _('No cobbler master found to replicate from, try --master.')
if self.uri is not None:
self.remote = xmlrpclib.Server(self.uri)
self.sync_distros()
diff --git a/docs/cobbler.pod b/docs/cobbler.pod
index 72836f09..ce5cb0d2 100644
--- a/docs/cobbler.pod
+++ b/docs/cobbler.pod
@@ -399,6 +399,14 @@ Objects can also be renamed, as long as other objects don't reference them.
B<cobbler distro|profile|system|repo rename --name=oldname --newname=newname>
+=head2 REPLICATING
+
+Cobbler can replicate distro and profile data from a master cobbler server.
+
+B<cobbler replicate --master=cobbler.example.org>
+
+This will bring over all distro data for which it can find data in /var/www/cobbler/ks_mirror can be found. It will also bring over any default profiles for those distros. A default cobbler master can be set in the settings file. Tree data must still be rsync'd (or otherwise mirrored) manually.
+
=head2 REBUILDING CONFIGURATIONS
B<cobbler sync>