Project

General

Profile

ERF12-2749 » History » Version 7

Dominic Cleal, 11/13/2014 12:40 PM
old puppet and dir envs

1 1 Dominic Cleal
h1. ERF12-2749
2
3 6 Dominic Cleal
h2. Generic or SSL connection errors
4
5
Please see [[Proxy_communication_errors]] first for SSL or communication errors, which aren't specific to this particular proxy action.
6
7 1 Dominic Cleal
h2. Unable to get environments from Puppet
8
9
Check /var/log/foreman-proxy/proxy.log on your puppetmaster for more details.
10
11 5 Dominic Cleal
h2. When using Puppet's directory environments
12 1 Dominic Cleal
13 5 Dominic Cleal
Ensure you have foreman-proxy 1.5.2 or higher when using Puppet 3.6+ and directory environments ("environmentpath" setting).
14 3 Joshua Hoblitt
15
Ensure that your @auth.conf@ enables access to the enviroments endpoint.
16
17
@path /v2.0/environments
18
method find
19
allow *@
20 7 Dominic Cleal
21
h2. The environment must be purely alphanumeric, not 'v2.0'
22
23
    ERROR -- : Failed to list puppet environments: Failed to query Puppet find environments API (400): The environment must be purely alphanumeric, not 'v2.0'
24
25
This indicates an older version of Puppet is running that doesn't have the available API for directory environments, but the proxy is trying to use them.  Ensure Puppet is version 3.6 or higher to use directory environments (preferably 3.7 due to bugs).  If you want to use an older version, you'll need to remove "environmentpath" and use config environments: https://docs.puppetlabs.com/puppet/latest/reference/environments_classic.html