Ask Your Question
1

uninstall puppet open source

asked 2016-03-07 02:57:34 -0500

adiabr gravatar image

HI,

I can't see any certificate in the master,

I want to uninstall puppet open source both from the master and agents.

How can I uninstall them completely?

Thank you

edit retag flag offensive close merge delete

Comments

It depends on the version of Puppet you installed, and how you installed it.

Alex Harvey gravatar imageAlex Harvey ( 2016-03-07 03:10:28 -0500 )edit

Thanks Alex, wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb sudo dpkg -i puppetlabs-release-pc1-trusty.deb sudo apt-get update apt-get install puppetserver I uninstall via apt-get but it seem when I install the master and the client again the cert does not work.

adiabr gravatar imageadiabr ( 2016-03-07 03:41:43 -0500 )edit

So your question is really about restoring certs in a DR situation?

Alex Harvey gravatar imageAlex Harvey ( 2016-03-07 05:07:48 -0500 )edit

Yes, but I tried all the solutions in the net and they didn't work. The next step is to uninstall.

adiabr gravatar imageadiabr ( 2016-03-07 06:07:38 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-07 06:58:06 -0500

I don't have a Debian-based system in front of me but I assume it's the same on CentOS.

These are the paths installed by the RPM:

# rpm -ql puppet-agent |cut -f1,2,3,4 -d/ |sort -u
/etc/logrotate.d/mcollective
/etc/logrotate.d/pxp-agent
/etc/profile.d/puppet-agent.csh
/etc/profile.d/puppet-agent.sh
/etc/puppetlabs
/etc/puppetlabs/code
/etc/puppetlabs/mcollective
/etc/puppetlabs/puppet
/etc/puppetlabs/pxp-agent
/etc/rc.d/init.d
/etc/sysconfig/mcollective
/etc/sysconfig/puppet
/etc/sysconfig/pxp-agent
/opt/puppetlabs
/opt/puppetlabs/bin
/opt/puppetlabs/facter
/opt/puppetlabs/mcollective
/opt/puppetlabs/puppet
/opt/puppetlabs/pxp-agent
/usr/share/doc
/var/log/puppetlabs
/var/run/puppetlabs

and:

# rpm -ql puppetserver |cut -f1,2,3,4 -d/ |sort -u                                                                                                                                   
/etc/logrotate.d/puppetserver
/etc/puppetlabs/puppetserver
/etc/rc.d/init.d
/etc/sysconfig/puppetserver
/opt/puppetlabs/bin
/opt/puppetlabs/server
/var/log/puppetlabs
/var/run/puppetlabs

So:

# service puppetserver stop
# service puppet-agent stop
# rpm -e puppetserver
# rpm -e puppet-agent
# rm -rf /var/run/puppetlabs /var/log/puppetlabs /etc/puppetlabs /opt/puppetlabs

That's if you care about cleaning up all the old files.

So use the Debian equivalent of all those commands it should be all gone.

edit flag offensive delete link more

Comments

Thank you very much

adiabr gravatar imageadiabr ( 2016-03-07 07:06:17 -0500 )edit

Good luck !

Alex Harvey gravatar imageAlex Harvey ( 2016-03-07 07:33:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-07 02:57:34 -0500

Seen: 72 times

Last updated: Mar 07 '16