@@ -467,7 +467,7 @@ def self.initialize_default_settings!(settings)
467467 EOT
468468 } ,
469469 :diff_args => {
470- :default => lambda { default_diffargs } ,
470+ :default => -> { default_diffargs } ,
471471 :desc => "Which arguments to pass to the diff command when printing differences between
472472 files. The command to use can be chosen with the `diff` setting." ,
473473 } ,
@@ -818,7 +818,7 @@ def self.initialize_default_settings!(settings)
818818 # We have to downcase the fqdn, because the current ssl stuff (as opposed to in master) doesn't have good facilities for
819819 # manipulating naming.
820820 :certname => {
821- :default => lambda { Puppet ::Settings . default_certname . downcase } ,
821+ :default => -> { Puppet ::Settings . default_certname . downcase } ,
822822 :desc => "The name to use when handling certificates. When a node
823823 requests a certificate from the CA Puppet Server, it uses the value of the
824824 `certname` setting as its requested Subject CN.
@@ -1086,15 +1086,15 @@ def self.initialize_default_settings!(settings)
10861086 Default is `prime256v1`."
10871087 } ,
10881088 :digest_algorithm => {
1089- :default => lambda { default_digest_algorithm } ,
1089+ :default => -> { default_digest_algorithm } ,
10901090 :type => :enum ,
10911091 :values => valid_digest_algorithms ,
10921092 :desc => "Which digest algorithm to use for file resources and the filebucket.
10931093 Valid values are #{ valid_digest_algorithms . join ( ', ' ) } . Default is
10941094 #{ default_digest_algorithm } ." ,
10951095 } ,
10961096 :supported_checksum_types => {
1097- :default => lambda { default_file_checksum_types } ,
1097+ :default => -> { default_file_checksum_types } ,
10981098 :type => :array ,
10991099 :desc => "Checksum types supported by this agent for use in file resources of a
11001100 static catalog. Values must be comma-separated. Valid types are
@@ -1129,7 +1129,7 @@ def self.initialize_default_settings!(settings)
11291129 :desc => "The name to use the Certificate Authority certificate." ,
11301130 } ,
11311131 :cadir => {
1132- :default => lambda { default_cadir } ,
1132+ :default => -> { default_cadir } ,
11331133 :type => :directory ,
11341134 :desc => "The root directory for the certificate authority." ,
11351135 } ,
@@ -1419,7 +1419,7 @@ def self.initialize_default_settings!(settings)
14191419 :desc => "File that provides mapping between custom SSL oids and user-friendly names"
14201420 } ,
14211421 :basemodulepath => {
1422- :default => lambda { default_basemodulepath } ,
1422+ :default => -> { default_basemodulepath } ,
14231423 :type => :path ,
14241424 :desc => "The search path for **global** modules. Should be specified as a
14251425 list of directories separated by the system path separator character. (The
@@ -1431,7 +1431,7 @@ def self.initialize_default_settings!(settings)
14311431 <https://puppet.com/docs/puppet/latest/environments_about.html>" ,
14321432 } ,
14331433 :vendormoduledir => {
1434- :default => lambda { default_vendormoduledir } ,
1434+ :default => -> { default_vendormoduledir } ,
14351435 :type => :string ,
14361436 :desc => "The directory containing **vendored** modules. These modules will
14371437 be used by _all_ environments like those in the `basemodulepath`. The only
@@ -1666,7 +1666,7 @@ def self.initialize_default_settings!(settings)
16661666 :desc => "Whether the server will search for SRV records in DNS for the current domain." ,
16671667 } ,
16681668 :srv_domain => {
1669- :default => lambda { Puppet ::Settings . domain_fact } ,
1669+ :default => -> { Puppet ::Settings . domain_fact } ,
16701670 :desc => "The domain which will be queried to find the SRV records of servers to use." ,
16711671 } ,
16721672 :http_extra_headers => {
0 commit comments