How Do You Find Out if The Server Has Puppet Master or Puppet Agent?

Problem scenario
Assuming that you know Puppet is installed, you want to find out if you are on a Linux server that has Puppet Master or Puppet Agent.  This posting applies strictly to Linux or Unix.

Solution
Run this command:
cat /etc/puppet/puppet.conf
Then use "ip addr show" (or ifconfig) to verify the IP address of the server that you are on. 

An alternative way to look for clues, depending on whether or not the server was at one time fully configured for Puppet, you may want to try one of these five commands:
history | grep master
history | grep agent
puppet --version
puppet master --version
puppet agent --version

Leave a comment

Your email address will not be published. Required fields are marked *