lib/puppet/defaults.rb in puppet-2.7.19 vs lib/puppet/defaults.rb in puppet-2.7.20.rc1

- old
+ new

@@ -70,11 +70,11 @@ :call_on_define => true, # Call our hook with the default value, so we always get the libdir set. :hook => proc do |value| ENV["PATH"] = "" if ENV["PATH"].nil? ENV["PATH"] = value unless value == "none" paths = ENV["PATH"].split(File::PATH_SEPARATOR) - %w{/usr/sbin /sbin}.each do |path| + Puppet::Util::Platform.default_paths.each do |path| ENV["PATH"] += File::PATH_SEPARATOR + path unless paths.include?(path) end value end }, @@ -650,11 +650,14 @@ :preferred_serialization_format => ["pson", "The preferred means of serializing ruby instances for passing over the wire. This won't guarantee that all instances will be serialized using this method, since not all classes can be guaranteed to support this format, but it will be used for all classes that support it."], - :puppetdlockfile => [ "$statedir/puppetdlock", "A lock file to temporarily stop puppet agent from doing anything."], + :puppetdlockfile => { :default => "$statedir/puppetdlock", + :type => :setting, # (#2888) Ensure this file is not added to the settings catalog. + :desc => "A lock file to temporarily stop puppet agent from doing anything.", + }, :usecacheonfailure => [true, "Whether to use the cached configuration when the remote configuration will not compile. This option is useful for testing new configurations, where you want to fix the broken configuration rather than reverting to a known-good one." @@ -941,10 +944,25 @@ :lexical => [false, "Whether to use lexical scoping (vs. dynamic)."], :templatedir => ["$vardir/templates", "Where Puppet looks for template files. Can be a list of colon-separated directories." - ] + ], + + :allow_variables_with_dashes => { + :default => false, + :desc => <<-'EOT' +Permit hyphens (`-`) in variable names and issue deprecation warnings about +them. This setting **should always be `false`;** setting it to `true` +will cause subtle and wide-ranging bugs. It will be removed in a future version. + +Hyphenated variables caused major problems in the language, but were allowed +between Puppet 2.7.3 and 2.7.14. If you used them during this window, we +apologize for the inconvenience --- you can temporarily set this to `true` +in order to upgrade, and can rename your variables at your leisure. Please +revert it to `false` after you have renamed all affected variables. +EOT + } ) setdefaults( :puppetdoc, :document_all => [false, "Document all resources"] )