[et-mgmt-tools] cobbler_sync_master

Scott Henson shenson at redhat.com
Wed Apr 23 20:07:36 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've attached a small script that we use to sync multiple subcobbler 
instances to a single master.  We currently use an out of band copy 
mechanism to get /var/www/cobbler/ks_mirror onto all our cobbler server, 
but we had no way of getting cobbler to know about the distro and the 
attached profiles.  This script will add both, without syncing any data 
and create the necessary symlinks in /var/www/cobbler/links.

Why should you use it?
We currently use it for network segmentation purposes.  We have several 
subcobblers that serve a single part of our network and we don't want to 
have to import distros in each place.  Instead we use snap mirroring to 
get /var/www/cobbler/ks_mirror out and then run cobbler_sync_master to 
get cobbler to create the distros and profiles in its configuration 
files.  This can also be used to distribute the load of a single network 
across multiple cobblers mounting ks_mirror off the same nfs share.

How do you use it?
Easy!  You use cobbler import to get the distro into the master server.  
Then when the ks_mirror files arrive on the subcobblers, you run 
'cobbler_sync_master --server master.example.com'.  The script will add 
any distros that it sees on the master that are not on the subcobbler 
and that the kernel has arrived for.

If someone else finds this script useful I'll probably clean it up a bit 
and we can throw it in scripts/.  If more than a few people find this 
useful I'd be willing to port it into cobbler core.

- --
Scott Henson
Red Hat Production Operations Release Engineer
WVU Alum BSAE/BSME
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFID5b/cQOfHbe3DKARAhGoAKC3J9S3csZHEaPhcX7it/ObUwK1lACg7NGG
LOEV4jWYsW6KF3vSJ2Gh8ic=
=Bb3Q
-----END PGP SIGNATURE-----

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cobbler_sync_master
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080423/1c66d48e/attachment.ksh>


More information about the et-mgmt-tools mailing list