#1159: Node yaml cache fails to refresh
-----------------------+----------------------------------------------------
Reporter: ctrlaltdel | Owner: community
Type: defect | Status: new
Priority: normal | Component: server
Version: 0.24.3 | Severity: normal
Keywords: | Stage: Unreviewed
Patch: None | Complexity: Unknown
-----------------------+----------------------------------------------------
When running ''puppetd --environment whatever'', the environment is not
taken into account on the puppetmaster.
This bug appeared after ticket #1130 got resolved and is certainly due
to caching of the node terminus. Looking through the code didn't help me
understand how this yaml cache should get refreshed.
On the puppetmaster, the cache files located in
/var/lib/puppet/yaml/node/ are being created only once for each new node
without getting refreshed when a fact change.
==== Workaround ====
Disabling node caching does indeed fix this problem but is arguably not
the best way to solve it !
{{{
--- a/bin/puppetmasterd
+++ b/bin/puppetmasterd
@@ -189,7 +189,7 @@ Puppet.genmanifest
Puppet::Node::Facts.terminus_class = :yaml
# Cache our nodes in yaml. Currently not configurable.
-Puppet::Node.cache_class = :yaml
+#Puppet::Node.cache_class = :yaml
require 'etc'
}}}
--
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1159>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---