Ask Your Question

Re-install Puppet Agent

asked 2014-12-15 08:59:18 -0600

Kuldeeps gravatar image

updated 2014-12-16 23:27:39 -0600

Hi ,

Due to some reason, I want to uninstall existing pe-puppet on agent node and run the standard curl command to add it to the other master, But while running the command it throws :

Error running install script /tmp/tmp.6K

Can somebody please throw some light on uninstalling puppet agent ?

Updated the error here C:\fakepath\Error.png

edit retag flag offensive close merge delete


Can you post the curl command you ran? What OS are you running?

mtravis gravatar imagemtravis ( 2014-12-15 14:01:50 -0600 )edit

Also, are you using the uninstaller to first remove the Puppet Enterprise agent? Otherwise, the curl command will either exit out (if same version is installed) or do an upgrade.

llowder gravatar imagellowder ( 2014-12-15 18:42:03 -0600 )edit

@mtravis I'm using RHEL 6.4 and the curl command is the simple agent installation script with package PE 3.3.2 Curl https://masternode:8140/... | sudo bash

Kuldeeps gravatar imageKuldeeps ( 2014-12-15 20:08:57 -0600 )edit

@llowder In PE 3.3.2 I can't find any uninstaller command for agent it's only for master node. Is there any btw?? What I suspect is for removing I was just using yum remove pe-puppet which doesn't remove other packages on its own so I have to manually remove the 19 packages that get installed.

Kuldeeps gravatar imageKuldeeps ( 2014-12-15 20:12:53 -0600 )edit

can you please refer the answer ssection facing content limit.

Kuldeeps gravatar imageKuldeeps ( 2014-12-16 09:55:15 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-12-16 10:55:04 -0600

Kuldeeps gravatar image

updated 2014-12-17 05:19:42 -0600

I have fixed the issue. While installing it installs 21 packages and you need to remove all the packages. Thanks guys.

edit flag offensive delete link more

answered 2014-12-16 10:26:31 -0600

llowder gravatar image

Use yum remove pe-agent. The uninstaller can be copied from the master to the agent and ran as well, though if you originally installed via a package resource or via the simplified installer, then the best option is to remove the pe-agent package.

For the error, try doing curl https://masternode:8140.... | sudo bash -x (use the full command, just add the x flag to bash)

You should be able to see exactly where it is failing. If the fix isn't clear, update the question with a copy of the output (or a link to a gist of it) and I'll update my answer as well.

edit flag offensive delete link more


I tried removing using yum remove pe-agent and then re-running the curl command , this time it just installs pe -puppet and then prints following error: Error running install script I wont be able to print the exact errors as my set up is in different environment which is not connected with net

Kuldeeps gravatar imageKuldeeps ( 2014-12-16 10:50:11 -0600 )edit

I have updated the error in my question itself.

Kuldeeps gravatar imageKuldeeps ( 2014-12-16 23:28:13 -0600 )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


Asked: 2014-12-15 08:59:18 -0600

Seen: 442 times

Last updated: Dec 17 '14