If you don’t have root command line access in Puppet Enterprise, you can run operating system commands on the primary server (formerly called the master) from the console. You can use a task in the
support_tasks module to troubleshoot issues by checking the status of PE service ports, tailing the last 100 lines of PE service logs, and checking the permissions of your SSL directory.
Version and installation information
PE version: 2017.3 and later
OS: Any primary server OS
Note: If you’re using a version of the
puppetlabs-support_tasks module older than 1.1.1 (2020 17 January), please update the module to use these steps. We renumbered all the tasks in the module at that time.
Use a task in the
support_tasks module to run the following commands on the primary server from the console:
puppet_port_status - netstat -ln | grep '8140\|5432\|8170\|8143\|443 \|4433\|8081\|8150\|8151\|8142'- Checks the status of all of the listed Puppet Enterprise service ports.
puppetserver_log / puppetdb_log / console_log / orchestrator_log / syslog_log- Tail the last 100 lines of one PE service’s log file.
ssldir_permissions- Show permissions for all folders below ssldir.
To use the task:
Download and install the
support_tasksmodule which includes the task for this solution.
In the console, in the Run section, click Task.
In the Task field, select task st0372.
Target your primary server node. From the list of target types, select Node list. Expand the Inventory nodes target. Enter the name of the primary server and click Search. From the list of results, select the primary server node.
Under Task parameters, select the parameter that matches the command you’d like to run from the dropdown list. If you’re tailing a log, select the log file you’d like to tail as the value.
Click Run job. After the task is completed, the command’s output will appear on the Job page.