This is a request for a utility to allow for the uninstallation and/or removal of Katello and it's related components from a system. A good example of the desired functionality can be found in the following script: https://raw.github.com/gist/1308881/41588442020685da6c55e446e65b94a3e8f10f25/katello_remove.sh
Can we clean this script up a bit before we include it? At least the `grep -v grep` and the `rpm -qa|grep` inside the yum commands. How about this: service mongod stop; service pulp-server stop; service tomcat6 stop; service katello stop; service katello-jobs stop kill -9 `ps -aef | grep [k]atello awk '{print $2}'` kill -9 `ps -aef | grep [d]elayed_job | awk '{print $2}'` #...or maybe just `killall -9 katello delayed_job` yum erase -y 'candlepin*' 'katello*' 'pulp*' 'mongodb*' '*postgres*' 'httpd*' 'mod_*' puppet tomcat6 'ruby*' # config files rm -rf /etc/pulp/ /etc/candlepin/ /etc/katello/ /usr/share/katello/ /var/lib/puppet/ /var/lib/pgsql/ /var/lib/mongodb/ /var/lib/katello/ /var/lib/pulp/ /etc/httpd/ /etc/tomcat6/ /var/lib/candlepin/ # logs rm -rf /var/log/katello/ /var/log/tomcat6/ /var/log/pulp/ /var/log/candlepin/ /var/log/httpd/ /var/log/mongodb/ # pulp cert stuff rm -rf /etc/pki/pulp/ /etc/pki/content/*
Oops, I forgot a pipe (|) in the first kill command. It should read: kill -9 `ps -aef | grep [k]atello | awk '{print $2}'`
The /root/ssl-build directory should be removed. Otherwise there are errors about the candlepin certificate. ADD: rm -rf /root/ssl-build/
Link just for a reference: http://git.fedorahosted.org/git/?p=katello.git;a=blob;f=scripts/katello_remove.sh
if the user only wants to reset the data associated with Katello they can run: /usr/share/katello/script/katello-reset-dbs this resets: * pulp's database * candlepin's database * katello's database and restarts all services
For re-deployments there is officially supported katello-configure --reset-data=YES option. For removal, there is a script in our git: http://git.fedorahosted.org/git/?p=katello.git;a=blob;f=scripts/katello_remove.sh I am closing this. Reopen if you need to distribute the removal script, but I have to say it is not super clean - I'd rather not distribute it at all.