lib/puppet/defaults.rb in puppet-2.7.1 vs lib/puppet/defaults.rb in puppet-2.7.3
- old
+ new
@@ -464,11 +464,11 @@
:owner => "service",
:group => "service",
:desc => "The directory in which to store reports
received from the client. Each client gets a separate
subdirectory."},
- :reporturl => ["http://localhost:3000/reports",
+ :reporturl => ["http://localhost:3000/reports/upload",
"The URL used by the http reports processor to send reports"],
:fileserverconfig => ["$confdir/fileserver.conf", "Where the fileserver configuration is stored."],
:strict_hostname_checking => [false, "Whether to only search for the complete
hostname as it is in the certificate when searching for node information
in the catalogs."]
@@ -491,9 +491,28 @@
:devicedir => {:default => "$vardir/devices", :mode => "750", :desc => "The root directory of devices' $vardir"},
:deviceconfig => ["$confdir/device.conf","Path to the device config file for puppet device"]
)
setdefaults(:agent,
+ :node_name_value => { :default => "$certname",
+ :desc => "The explicit value used for the node name for all requests the agent
+ makes to the master. WARNING: This setting is mutually exclusive with
+ node_name_fact. Changing this setting also requires changes to the default
+ auth.conf configuration on the Puppet Master. Please see
+ http://links.puppetlabs.com/node_name_value for more information."
+ },
+ :node_name_fact => { :default => "",
+ :desc => "The fact name used to determine the node name used for all requests the agent
+ makes to the master. WARNING: This setting is mutually exclusive with
+ node_name_value. Changing this setting also requires changes to the default
+ auth.conf configuration on the Puppet Master. Please see
+ http://links.puppetlabs.com/node_name_fact for more information.",
+ :hook => proc do |value|
+ if !value.empty? and Puppet[:node_name_value] != Puppet[:certname]
+ raise "Cannot specify both the node_name_value and node_name_fact settings"
+ end
+ end
+ },
:localconfig => { :default => "$statedir/localconfig",
:owner => "root",
:mode => 0660,
:desc => "Where puppet agent caches the local configuration. An
extension indicating the cache format is added automatically."},