Project

General

Profile

Actions

Bug #2097

closed

Improve debug when unable to get Puppet settings with bad return code

Added by Dominic Cleal almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently PuppetSetting raises an exception when the return code of the puppet master --configprint command is bad. This is usually down to configuration, but there's not enough debug to help.

It currently raises this message:

unable to get [:hostcert, :localcacert, :hostprivkey, :storeconfigs] Puppet setting: <stdout>

It should also provide the path to puppetmasterd it ran (as people have had $PATH issues), the full command (to include the puppet.conf location) and stderr.

Actions

Also available in: Atom PDF