Troubleshooting Puppet Issues in Oracle Solaris

The puppet:agent service logs most activity to the syslog service. The syslog configuration specifies where to save these messages. In Oracle Solaris, the default log location is the /var/adm/messages directory.

The following command shows the location of the service logs:

$ svcprop -p config/logdest puppet:agent
/var/log/puppetlabs/puppet/puppet-agent.log

The following command shows the location of the Puppet SMF service instance logs:

$ svcs -L puppet:agent
/var/svc/log/application-puppet:agent.log

Use the svcs -Lv command to view the complete log file of the service:

$ svcs -Lv puppet:agent

The following example shows the kind of information you might see in the Puppet Agent service log:

2022-02-10 01:44:21 -0800 Puppet (info): Computing checksum on file /custom-file.txt
2022-02-10 01:44:21 -0800 /Stage[main]/Main/File[/custom-file.txt] (info): Filebucketed/
custom-file.txt to puppet with sum 103e5b132c69289dc18042a99b73fad9
2022-02-10 01:44:21 -0800 /Stage[main]/Main/File[/custom-file.txt]/content (notice):
content changed '{md5}103e5b132c69289dc18042a99b73fad9' to
'{md5}e4b97f0c18e5bb0bb24d6dbe0db326f4'
2022-02-10 01:44:22 -0800 /Stage[main]/Main/User[testuser409]/ensure (notice): created
2022-02-10 01:44:26 -0800 /Stage[main]/Main/Service[nfs/client]/ensure (notice): ensure
changed 'stopped' to 'running' (corrective)
2022-02-10 01:44:26 -0800 /Stage[main]/Main/Service[nfs/client] (info): Unscheduling
refresh on Service[nfs/client]
2022-02-10 01:44:26 -0800 Puppet (notice): Applied catalog in 5.30 seconds