[Spacewalk-list] rhn-cfg-copy - Clone Config Channels between orgs / servers

GProcunier at symcor.com GProcunier at symcor.com
Fri Mar 2 18:44:39 UTC 2012


Hello,

I have created a tool that allows users to recursively clone configuration 
channels between orgs of a spacewalk/satellite server or alternatively 
between servers themselves.  I am CC'ing this to the spacewalk-list as per 
one of the list owners suggestions.

If the powers that be find it useful, please consider this an application 
to have it merged into the git repo.

Cheers,

(see attached)




Example output:

[gprocuni at dev rhnapi-dev]$ ./rhn-cfg-copy --src_host satserver.example.com 
--src_auth org1-auth --src_conf hardening-global --dst_host 
satserver.example.com --dst_auth org2-auth --dst_conf clone-test

[-] Checking if source channel exists
[-] Checking that destination channel does not exist
[-] Getting source channel details
[-] Dumping source Channel File List
[-] Extracting source channel data
[-] Creating config channel destination

Replicating data:

F /etc/aliases
F /etc/cron.allow
F /etc/cron.deny
F /etc/issue.net
F /etc/login.defs
F /etc/logrotate.conf
F /etc/motd
F /etc/nossh
F /etc/nslcd.conf
F /etc/nsswitch.conf
F /etc/ntp.conf
F /etc/openldap/ldap.conf
F /etc/pam.d/password-auth-ac
F /etc/pam.d/sshd
F /etc/pam.d/system-auth-ac
F /etc/pam_ldap.conf
F /etc/profile
F /etc/resolv.conf
F /etc/rsyslog.conf
F /etc/securetty
F /etc/security/access.conf
F /etc/ssh/sshd_config
F /etc/warning
F /root/.ssh/authorized_keys

Done!

--

Greg Procunier
UNIX Administrator III - Enterprise Servers and Storage
1 Robert Speck Parkway, Suite 400, Mississauga, Ontario L4Z 4E7
Office: 416-673-3320 
Mobile: 647-465-9752
Email: gprocunier at symcor.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rhn-cfg-copy
Type: application/octet-stream
Size: 7200 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120302/c101357d/attachment.obj>
-------------- next part --------------


CONFIDENTIALITY WARNING 
This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.

AVERTISSEMENT RELATIF ? LA CONFIDENTIALIT? 
Ce message, ainsi que les pi?ces qui y sont jointes, est destin? ? l?usage exclusif de la personne ? laquelle il s?adresse et peut contenir de l?information personnelle ou confidentielle. Si le lecteur de ce message n?en est pas le destinataire, nous l?avisons par la pr?sente que toute diffusion, distribution, reproduction ou utilisation de son contenu est strictement interdite. Veuillez avertir sur-le-champ l?exp?diteur par retour de courrier ?lectronique et supprimez ce message ainsi que toutes les pi?ces jointes.


More information about the Spacewalk-list mailing list