Project

General

Profile

Actions

Bug #1806

closed

puppet 2.6 depreciates puppetca

Added by Corey Osman over 11 years ago. Updated almost 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

puppetca used to be the only way to list certificates. Since 2.6 puppetca still exists but shows a depreciation warning instead of listing certs.

We need to detect which puppet version is being used and then if >2.6 use puppet cert --list instead of trying puppetca --list.

Otherwise I have to remove the puppetca binary so foreman-proxy doesn't find it.

W, [2012-08-02T15:55:52.908070 #9377]  WARN -- : Failed to run puppetca: 
E, [2012-08-02T15:55:52.908539 #9377] ERROR -- : Failed to list certificates: Execution of puppetca failed, check log files
D, [2012-08-02T16:04:59.853686 #9377] DEBUG -- : Found puppetca at /usr/bin/puppetca
D, [2012-08-02T16:04:59.853943 #9377] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2012-08-02T16:04:59.854022 #9377] DEBUG -- : Executing /usr/bin/sudo -S /usr/bin/puppetca --list --all
W, [2012-08-02T16:04:59.922206 #9377]  WARN -- : Failed to run puppetca: 
E, [2012-08-02T16:04:59.922678 #9377] ERROR -- : Failed to list certificates: Execution of puppetca failed, check log fil


Related issues 1 (0 open1 closed)

Is duplicate of Smart Proxy - Bug #1941: Only the "puppet" command should be tried when Puppet 3 is being usedClosedSam Kottler11/14/2012Actions
Actions

Also available in: Atom PDF