puppet module path does not get set to puppet.conf for second puppet run

Bug #1262003 reported by Pradeep Kilambi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Medium
Mark T. Voelker
Havana
Fix Released
Medium
Mark T. Voelker

Bug Description

The puppet modules via apt get installed under /usr/share/puppet/modules. But the module path is not set appropriately. It gets passed into the setup.pp's puppet apply. But for non aio installs user needs to run it for site.pp and the module path is not set at that point.

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Hmm…that path should be part of the default module path, and from a glance at configprint that looks to be the case (this is a compressed_ha scenario):

root@build:~/puppet_openstack_builder/install-scripts# puppet config print modulepath
/etc/puppet/modules:/usr/share/puppet/modules
root@build:~/puppet_openstack_builder/install-scripts#

Revision history for this message
Chris Ricker (chris-ricker) wrote :

Issue is that we use passenger, not standalone puppetmaster, so the compiled in default module path doesn't apply

Our /etc/puppet/puppet.conf (which does apply) currently has:

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
modulepath = /etc/puppet/modules

Changed in openstack-cisco:
status: New → Confirmed
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

The issue here is that we're calling up a default in the puppet-puppet module, which for some strange reason doesn't include the usual two paths in modulepath. This should be a relatively simple fix.

Changed in openstack-cisco:
assignee: nobody → Mark T. Voelker (mvoelker)
importance: Undecided → Medium
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Hmm...I take that back: I think we are sending a param, and are setting it with only a single path.

https://github.com/CiscoSystems/puppet-coi/blob/havana/manifests/profiles/puppet/master.pp#L48

Revision history for this message
Mark T. Voelker (mvoelker) wrote :
Changed in openstack-cisco:
status: Confirmed → In Progress
Changed in openstack-cisco:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.