Project

General

Profile

Actions

Bug #1068

closed

Module path not guessed correctly with puppet 2.7

Added by Laurent Bigonville over 13 years ago. Updated about 12 years ago.

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

Description

Hi,

It seems that theforeman cannot guess the modulepath correctly with puppet 2.7.

puppetd --genconfig gives different information if run as root or as a foreman user

foreman user:
modulepath = /usr/share/foreman/.puppet/modules:/usr/share/puppet/modules

root user:
modulepath = /etc/puppet/modules:/usr/share/puppet/modules

This cause the refresh of the existing class to fail when ran from the UI, if modulepath = /etc/puppet/modules:/usr/share/puppet/modules is run from the foreman user, it fails with Unable to find directory /usr/share/foreman/.puppet/modules in environment production

Adding a modulepath in the main section of puppet.conf is a good workaround.

Also the modulepath option has changed form the puppetmasterd section to the master section.

PS: the UI shows no error at all when this is happening, is simply go back to the same page, I guess adding an error wouldn't hurt

Cheers


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #1255: Error: "Unable to find directory /etc/puppet/modules in environment production"Closed10/24/2011Actions
Related to Foreman - Bug #1159: Class import behaviour not consistent "rake puppet:import:puppet_classes" x "UI"ClosedOhad Levy09/07/2011Actions
Actions #1

Updated by Ohad Levy almost 13 years ago

  • Status changed from New to Ready For Testing

I think this is solved already - could you try the suggestion in the following comment:
http://theforeman.org/issues/1159#note-8

Actions #2

Updated by Greg Sutcliffe about 12 years ago

  • Target version set to Bug scrub
Actions #3

Updated by Greg Sutcliffe about 12 years ago

  • Status changed from Ready For Testing to Closed

This bug is believed fixed in the latest version, since the smart-proxy now handles all puppet communication. Please re-open if you still encounter this issue.

Actions

Also available in: Atom PDF