Issue #16753 has been updated by Henrik Lindberg.

Status changed from Accepted to In Topic Branch Pending Review
Branch set to https://github.com/puppetlabs/puppet/pull/1305

An implementation of Daniel Pittman's idea is now in 
https://github.com/puppetlabs/puppet/pull/1305

By default, the master application will now "cache" nodes using the Write Only 
Yaml (`woy`) terminus.
If this is not wanted (since there will be one file written for every node ever 
talking to the master), the setting `node_cache_terminus` can be set to nothing.

With the `woy` terminus in place, it is possible to use find and search using 
the `yaml` terminus. (The original problem of reading stale data from the cache 
is avoided since the write only cache never finds anything).

The recommended way to query for node information is to use PuppetDB and set 
`node_cache_terminus` to nothing.



----------------------------------------
Bug #16753: Need the ability to list all nodes
https://projects.puppetlabs.com/issues/16753#change-77899

Author: James Turnbull
Status: In Topic Branch Pending Review
Priority: High
Assignee: Henrik Lindberg
Category: indirector
Target version: 3.1.0
Affected Puppet version: 3.0.0
Keywords: backlog
Branch: https://github.com/puppetlabs/puppet/pull/1305


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.

Currently available is:

<pre>
puppet node find 'hostname'
</pre>

If we had:

<pre>
puppet node search '*'
</pre>

That would meet my needs.


-- 
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.

Reply via email to