Uninstalling/Upgrading Puppet
You probably don't need to remove your old version, but here's how you could go about it. (these instructions would work for just about any software)
First you need to figure out where your current puppet is installed.
As root, run 'updatedb' to rescan you file system.
Let this chug a bit.
Then type 'locate puppet'.
This will show you all locations on your system with the word puppet in them.
Most likely, your puppet install is in
/etc/puppet/* /usr/lib/ruby/1.X/puppet /var/lib/puppet and possibly /var/puppet
The safest way to handle things is to mv these directories to another location. ie 'mkdir /tmp/oldpuppet ; mv /var/puppet /tmp/oldpuppet/varpuppet' etc..
Also be sure to clean up the binaries. (most likely in /usr/sbin) /usr/sbin/puppetca /usr/sbin/puppetd /usr/sbin/puppetmasterd /usr/sbin/puppetqd /usr/sbin/puppetrun
Puppet is a moving target with frequent updates. You may have no choice but to build puppet from source.
HOWEVER, you would be better suited to do RPM Builds of puppet. (thus creating .rpm packages that you can install on your redhat system, and get all the benefits of package management.)
Here's a document describing how to do just that.
http://agilesysadmin.net/building-puppet-rpms
Best of luck...
Related videos on Youtube
Pulkit Sethi
Updated on September 17, 2022Comments
-
Pulkit Sethi almost 2 years
The questions below are all related to the topic of uninstalling/upgrading Puppet:
- How do I uninstall previous versions of puppet?
- What files do I need to delete and where are they located?
- Is there a script that automatically does this?
- Do I need to manually remove previously installed versions of Puppet before I upgrade?
-
Zypher over 14 yearsOn what Distro, and how was it originally installed?
-
Pulkit Sethi over 14 yearsThe Distro is Redhat, and it was installed from source. A related comment I found on the Puppet User google group from James Turnball: "IMHO - yes - don't install via source! It's not scalable and it leads to issues when upgrading. Use your operating system or distribution's packaging system instead. You can then easily use Puppet to manage itself on clients - in fact I recommend it as an approach. " - James Turnball Source: groups.google.com/group/puppet-users/browse_thread/thread/…