Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check if the Puppet Enterprise server/master is installed and working correctly?

Puppet Enterprise appeared to be installed on my ubuntu 14.04 server:

root@puppet:/# puppet --version
3.8.5 (Puppet Enterprise 3.8.4)

However, the puppet service is not running:

root@puppet:/# service puppet status
puppet: unrecognized service

The Puppet server seems to be working as well, as I can execute following command on the puppet master:

root@puppet:/# puppet resource package nginx
package { 'nginx':
  ensure => '1.4.6-1ubuntu3.4',

Puppet cert list is empty as well even after running 'puppet agent -t' on a node:

root@puppet:/# puppet cert list 
root@puppet:/# 
like image 528
AD7 Avatar asked May 28 '16 00:05

AD7


People also ask

How do I know if puppet is installed?

To check the installed puppet version use puppet -V command and then create a new file called in the apt preferences directory with following configurations changes. root@ubuntu-client:~# puppet -V 3.8. 1 root@ubuntu-client:~# vim /etc/apt/preferences.

How do I find puppet master?

To see the settings the Puppet master service and the Puppet cert command would use: Specify --section master . Use the --environment option to specify the environment you want settings for, or let it default to production . Remember to use sudo .

How do I know if puppet was last run?

For that purpose, puppet has a built in feature to export status info about its last run into a file (by default /var/lib/puppet/state/last_run_summary.

How do you know if puppet is disabled?

Disabling the Puppet agent creates a file /opt/puppetlabs/puppet/cache/state/agent_disabled. lock (re-enabling the agent removes it), so you can check for the presence of that file to detect whether or not the agent is disabled.


1 Answers

The puppet service is called pe-puppet and not puppet on PE 3.x.

puppet cert list only displays the outstanding cert requests. You want puppet cert list --all to display the signed certs. https://docs.puppet.com/puppet/latest/reference/man/cert.html

like image 141
Matt Schuchard Avatar answered Nov 12 '22 05:11

Matt Schuchard