unInstall puppet agent

asked 2016-12-21 15:20:38 -0500

Abhinav.Santi gravatar image

I spinned up an instance in AWS using an AMI of an instance which already had puppet agent installed in it. the new instance has the same certificate name and configuration as the old instance. I am trying to uninstall the puppet enterprise agent from the new instance and add reinstall the agent with the new certificate for the puppet server.

I followed the process of uninstalling the Puppet enterprise agent for nix machines- copied puppetenterpriseuninstaller and utilities from the puppet server to the agent. this sucessfully removed the enterprise agent from the node ( Am I missing anystep here uninstalling PE-Agent from an instance spinned from an AMI?)

Considering puppet agent to be gone. I tried to install it againg from puppet server using curl -k fqan:8140... but i got the following errors. Am I missing anything here?

W: GPG error: https://puppet.abc.com:8140 ./ Release: The following signatures were invalid: KEYEXPIRED 140000000 Reading package lists... Done Building dependency tree
Reading state information... Done apt-transport-https is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 198 not upgraded. OK W: GPG error: https://puppet.abc.com:8140 ./ Release: The following signatures were invalid: KEYEXPIRED 140000000 Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: puppet-agent 0 upgraded, 1 newly installed, 0 to remove and 198 not upgraded. Need to get 9911 kB of archives. After this operation, 51.0 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! puppet-agent E: There are problems and -y was used without --force-yes /tmp/tmp.EqPo67Lgf3: line 75: /opt/puppetlabs/puppet/bin/puppet: No such file or directory [main] /tmp/tmp.EqPo67Lgf3: line 84: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 94: /opt/puppetlabs/puppet/bin/facter: No such file or directory /tmp/tmp.EqPo67Lgf3: line 94: /opt/puppetlabs/puppet/bin/ruby: No such file or directory /tmp/tmp.EqPo67Lgf3: line 94: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 103: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 104: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 108: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 46: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 46: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 46: /opt/puppetlabs/puppet/bin/puppet: No such file or directory /tmp/tmp.EqPo67Lgf3: line 46: /opt/puppetlabs/puppet/bin/puppet: No such file or directory + fail 'Error running install script /tmp/tmp.EqPo67Lgf3' + echo 'Error running install script /tmp/tmp.EqPo67Lgf3' Error running install script /tmp/tmp.EqPo67Lgf3 + exit 1

edit retag flag offensive close merge delete