Hello,
I swear I've added the VMware ESX replication code before..... but
it's not in the git master so here that is again along with code to
allow VMware ESXI to replicate too.
https://github.com/jsabo/cobbler/commit/5b95613a3f76ee9c27be93fd47d1cdabe...
You can see it work here (works at my chair!)...
[root@cobbler2-sab0 ~]# cobbler replicate --master=192.168.69.3 --sync-all
task started: 2011-03-07_121327_replicate
task started (id=Replicate, time=Mon Mar 7 12:13:27 2011)
cobbler_master = 192.168.69.3
profile_patterns = []
system_patterns = []
repo_patterns = []
image_patterns = []
mgmtclass_patterns = []
package_patterns = []
file_patterns = []
omit_data = False
sync_all = True
using CLI defined master
XMLRPC endpoint:
http://192.168.69.3/cobbler_api
test ALPHA
test BETA
Querying Both Servers
remote names struct is {'profile': ['rhel5u5-xen-x86_64',
'sup-vmware-esxi-4.1-x86_64', 'rhel5u5-x86_64',
'vmware-esxi4.1-x86_64', 'sup-rhel5u5-x86_64'], 'package': [],
'mgmtclass': ['snmp-config', 'ntp-config',
'interface-config', 'base',
'puppetd-install'], 'image': [], 'system':
['testvm1-sab0',
'vm1-sab0'], 'repo': [], 'file': [], 'distro':
['rhel5u5-xen-x86_64',
'rhel5u5-x86_64', 'vmware-esxi4.1-x86_64']}
transfer list for distro is ['rhel5u5-xen-x86_64', 'rhel5u5-x86_64',
'vmware-esxi4.1-x86_64']
transfer list for profile is ['rhel5u5-xen-x86_64',
'sup-vmware-esxi-4.1-x86_64', 'rhel5u5-x86_64',
'vmware-esxi4.1-x86_64', 'sup-rhel5u5-x86_64']
transfer list for system is ['testvm1-sab0', 'vm1-sab0']
transfer list for repo is []
transfer list for image is []
transfer list for mgmtclass is ['interface-config', 'ntp-config',
'snmp-config', 'base', 'puppetd-install']
transfer list for package is []
transfer list for file is []
*NOT* Removing Objects Not Stored On Master
Rsyncing distros
Rsyncing distro rhel5u5-xen-x86_64
....
Removing Objects Not Stored On Local
adding system testvm1-sab0
adding system vm1-sab0
adding mgmtclass interface-config
adding mgmtclass ntp-config
adding mgmtclass base
adding mgmtclass snmp-config
adding mgmtclass puppetd-install
Updating Objects Newer On Remote
Linking Distro rhel5u5-xen-x86_64
Linking Distro rhel5u5-x86_64
Linking Distro vmware-esxi4.1-x86_64
Syncing
Done
*** TASK COMPLETE ***