Project

General

Profile

Actions

Bug #1733

closed

Environment issue if the env is not specifically defined

Added by Jeff Palmer over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When using puppet in a "default" single environment scenario (as in, no [production] stanzas in the puppet.conf) the smart proxy returns an empty array of environments when you query the http://foreman.example.com:8443/puppet/environments URL

Actions #1

Updated by Greg Sutcliffe over 12 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Greg Sutcliffe
  • % Done changed from 0 to 80

We're testing for conf[:main][:modulepath] || conf[:master][:modulepath] but a 'basic' puppet.conf (like http://pastebin.com/1w40gqWc) has neither. We can fix this by adding the global Puppet default modulepath.

Pull request with proposed fix at: https://github.com/theforeman/smart-proxy/pull/23

Actions #2

Updated by Jeff Palmer over 12 years ago

I have applied this patch.

Afterwards, the smart-proxy shows the environment, it also returns a proper json list of the classes for the environment.
Additionally, the foreman UI now allows importing the puppet classes as expected.

Actions #3

Updated by Ohad Levy over 12 years ago

  • Target version set to 1.0
Actions #4

Updated by Anonymous over 12 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF