summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_misc.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-06-12 13:50:06 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-06-12 13:50:06 -0400
commitf018804b0b0d87d435105528d00322c47b8d5e50 (patch)
treea0469ede4c1f8d6e599dfafe65247cb336749b53 /cobbler/modules/cli_misc.py
parentddf8ac30296f5e2d1a0b7d6f57db797860f111db (diff)
downloadcobbler-f018804b0b0d87d435105528d00322c47b8d5e50.tar.gz
cobbler-f018804b0b0d87d435105528d00322c47b8d5e50.tar.xz
cobbler-f018804b0b0d87d435105528d00322c47b8d5e50.zip
Improve cobbler replicate feature so that it can mirror content between multiple cobbler servers, and it now also can transfer system records as an option. See "cobbler replicate --help" for more.
Diffstat (limited to 'cobbler/modules/cli_misc.py')
-rw-r--r--cobbler/modules/cli_misc.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py
index 35a6e49b..f78bff96 100644
--- a/cobbler/modules/cli_misc.py
+++ b/cobbler/modules/cli_misc.py
@@ -272,10 +272,24 @@ class ReplicateFunction(commands.CobblerFunction):
return "replicate"
def add_options(self, p, args):
- p.add_option("--master", dest="master", help="Cobbler server to replicate from.")
+ p.add_option("--master", dest="master", help="Cobbler server to replicate from.")
+ p.add_option("--include-systems", dest="systems", action="store_true", help="include systems in addition to distros, profiles, and repos")
+ p.add_option("--full-data-sync", dest="all", action="store_true", help="rsync everything")
+ p.add_option("--sync-kickstarts", dest="kickstarts", action="store_true", help="rsync kickstart templates")
+ p.add_option("--sync-trees", dest="trees", action="store_true", help="rsync imported trees")
+ p.add_option("--sync-triggers", dest="triggers", action="store_true", help="rsync trigger scripts")
+ p.add_option("--sync-repos", dest="repos", action="store_true", help="rsync mirrored repo data")
def run(self):
- return self.api.replicate(cobbler_master = self.options.master)
+ return self.api.replicate(
+ cobbler_master = self.options.master,
+ sync_all = self.options.all,
+ sync_kickstarts = self.options.kickstarts,
+ sync_trees = self.options.trees,
+ sync_repos = self.options.repos,
+ sync_triggers = self.options.triggers,
+ systems = self.options.systems
+ )
########################################################
@@ -291,7 +305,7 @@ class AclFunction(commands.CobblerFunction):
p.add_option("--adduser", dest="adduser", help="give acls to this user")
p.add_option("--addgroup", dest="addgroup", help="give acls to this group")
p.add_option("--removeuser", dest="removeuser", help="remove acls from this user")
- p.add_option("--removegroup", dest="removegroup", help="remove acls from this group")
+ p.add_option("--removegroup", dest="removegroup", help="remove acls from this group")
def run(self):
return self.api.acl_config(