Issue #16753 has been updated by Nigel Kersten.
Andrew Parker wrote: > After some looking into this there is a discussion on the mailing list at > <https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/5c7bg1thdIQ> > in which it is mentioned that `puppet node find node2.mylocal --terminus > plain --render-as yaml` produces the same output as looking at the YAML > files. If this is true, then is using that a viable alternative? Unless James and other integrations know the node name before the call, I don't think so, as you only have `find`, not `list` or `search`, and can't search on '*' with that API. ---------------------------------------- Bug #16753: YAML node cache disabled https://projects.puppetlabs.com/issues/16753#change-73437 Author: James Turnbull Status: Accepted Priority: Normal Assignee: eric sorenson Category: indirector Target version: 3.0.x Affected Puppet version: 3.0.0 Keywords: Branch: In Puppet 3.0 we've disabled the default YAML node cache (see https://github.com/puppetlabs/puppet/commit/5a79d9abd96e73ff166527cdee69a30da8ab0f87). I use this code (and a number of others in the community use similar) to return a list of nodes: <pre> Puppet[:clientyamldir] = Puppet[:yamldir] if Puppet::Node.respond_to? :terminus_class Puppet::Node.terminus_class = :yaml nodes = Puppet::Node.search("*") else Puppet::Node.indirection.terminus_class = :yaml nodes = Puppet::Node.indirection.search("*") end </pre> This now doesn't work. We need a method of returning the current list of nodes the master knows about. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- 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.
