[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Luke Kanies
luke at puppetlabs.com
Tue May 10 08:05:35 UTC 2011
The following commit has been merged in the experimental branch:
commit f67e7fa39479751a7c5268bd32e503e35602ce4f
Author: Luke Kanies <luke at puppetlabs.com>
Date: Wed Mar 2 18:16:41 2011 -0800
Modifying Facts.upload a bit
The functionality is basically the same, but we're
no longer using caching, and we log that
it happened.
Signed-off-by: Luke Kanies <luke at puppetlabs.com>
diff --git a/lib/puppet/interface/facts.rb b/lib/puppet/interface/facts.rb
index 7b269e0..3262745 100644
--- a/lib/puppet/interface/facts.rb
+++ b/lib/puppet/interface/facts.rb
@@ -7,7 +7,10 @@ Puppet::Interface::Indirector.new(:facts) do
# Upload our facts to the server
action(:upload) do |*args|
Puppet::Node::Facts.indirection.terminus_class = :facter
- Puppet::Node::Facts.indirection.cache_class = :rest
- Puppet::Node::Facts.indirection.find(Puppet[:certname])
+ facts = Puppet::Node::Facts.indirection.find(Puppet[:certname])
+ Puppet::Node::Facts.indirection.terminus_class = :rest
+ Puppet::Node::Facts.indirection.save(facts)
+ Puppet.notice "Uploaded facts for '#{Puppet[:certname]}'"
+ nil
end
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list