puppetlabs/Razor — pull request #240 by tjmcs (2012-11-14 01:16:15+00:00)
Title: Adds support for use of a gem mirror (internal or external) by the Microkernel

Support for an external gem mirror within the Razor Microkernel instances required that two new parameters be added to the Razor configuration file (mk_gem_mirror_uri and mk_gemlist_uri). These parameters are used during the gem installation process (by Razor Microkernel instances). These parameters define the location of a gem mirror (internal or external) and a list of gems to install from that gem mirror, respectively. Since this change in configuration parameters would not map into existing razor_server.conf files (in use with existing Razor installs), we also added code to augment the existing Razor configuration (as is taken from an existing Razor configuration file) with default values for any parameters that are not defined in that Razor configuration file. This will ensure that these new parameters are available on any system, even systems with an existing Razor configuration file that does not include them. This may also resolve the primary issue raised in the discussion of Issue #183 (specifically the discussion of how best to deal with a "partial" configuration file).