Puppet: Add/Remove Nodes
Description:
Follow this to install/uninstall Puppet on a client
To Resolve:
-
To Install:
- For Linux:
1 2
sudo su curl -k https://puppetserver.yourdomain.com:8140/packages/current/install.bash | bash
- For Windows: We have this as part of the imaging process, but there is a similar PS script you can run from your puppet server.
-
To remove a node:
- For Linux:
1 2 3 4 5 6 7 8 9
# on puppet master ssh root@yourpuppet.domain.com puppet node purge $hostnameWithoutFQDN scp /opt/puppetlabs/bin/puppet-enterprise-uninstaller root@yourclient.domain.com:/root/ # On node: rm -rf /etc/puppetlabs/puppet/ssl rm -rf /etc/puppetlabs/mcollective/ssl/clients /root/puppet-enterprise-uninstaller
- For Windows: Do the server part except transferring the uninstaller then on the node just use add/remove programs to uninstall.
Comments