Scott Henson wrote:
-----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-----
------------------------------------------------------------------------
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Very nice.
Scott, if you want, send in a patch to add it cobbler's core.
I'd recommend adding a "cobbler/action_syncmaster.py" and also a
"cobbler/modules/cli_syncmaster.py". If you poke around the modules
directory you should see how that works in terms of adding new commands
to the CLI.
Might we want to call it something without "sync" in it as we already
have "sync" and "reposync"?
loadmaster? clonemaster?
--Michael
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools