summaryrefslogtreecommitdiffstats
path: root/lib/puppet/defaults.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2011-02-17 15:37:12 -0800
committerPaul Berry <paul@puppetlabs.com>2011-02-17 15:37:26 -0800
commit6d5f1aa75c8c64033b56f49e87fc03258d5c158c (patch)
tree13280ce802707d5a8d52e2d7a06d5ab2610d496d /lib/puppet/defaults.rb
parentab27da7967e1e145d5fbc130e5fbcec6795ca775 (diff)
parent8a485608e2941ff8c7ecc706c21f906d59302dd6 (diff)
downloadpuppet-6d5f1aa75c8c64033b56f49e87fc03258d5c158c.tar.gz
puppet-6d5f1aa75c8c64033b56f49e87fc03258d5c158c.tar.xz
puppet-6d5f1aa75c8c64033b56f49e87fc03258d5c158c.zip
Merge branch 'ticket/2.6.next/6338' into 2.6.next
* ticket/2.6.next/6338: (#5150) Make fact REST terminus configurable to connect to inventory service (#5166) Inventory service is now searchable by timestamp. Maint: backport timestamp accessor for facts from 2.7 branch Refactored Puppet::Node::Inventory::Yaml tests in preparation for adding freshness check Refactor Puppet::Node::Inventory::Yaml in preparation for adding freshness (#5132) Provide a query REST interface for inventory
Diffstat (limited to 'lib/puppet/defaults.rb')
-rw-r--r--lib/puppet/defaults.rb20
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb
index 687ac4eb0..8da104086 100644
--- a/lib/puppet/defaults.rb
+++ b/lib/puppet/defaults.rb
@@ -119,7 +119,17 @@ module Puppet
:node_terminus => ["plain", "Where to find information about nodes."],
:catalog_terminus => ["compiler", "Where to get node catalogs. This is useful to change if, for instance,
you'd like to pre-compile catalogs and store them in memcached or some other easily-accessed store."],
- :facts_terminus => [Puppet.application_name.to_s == "master" ? 'yaml' : 'facter', "The node facts terminus."],
+ :facts_terminus => {
+ :default => Puppet.application_name.to_s == "master" ? 'yaml' : 'facter',
+ :desc => "The node facts terminus.",
+ :hook => proc do |value|
+ require 'puppet/node/facts'
+ if value.to_s == "rest"
+ Puppet::Node::Facts.cache_class = :yaml
+ end
+ end
+ },
+ :inventory_terminus => [ "$facts_terminus", "Should usually be the same as the facts terminus" ],
:httplog => { :default => "$logdir/http.log",
:owner => "root",
:mode => 0640,
@@ -582,11 +592,17 @@ module Puppet
end
},
:report_server => ["$server",
- "The server to which to send transaction reports."
+ "The server to send transaction reports to."
],
:report_port => ["$masterport",
"The port to communicate with the report_server."
],
+ :inventory_server => ["$server",
+ "The server to send facts to."
+ ],
+ :inventory_port => ["$masterport",
+ "The port to communicate with the inventory_server."
+ ],
:report => [false,
"Whether to send reports after every transaction."
],