Re: [Puppet-dev] Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-22 Thread Dan Bode
You could use the resource_type indirection to query all of the resource types and select the ones of type node. This will only query the nodes that were specified in manifests (which is quite different from all of the nodes that have checked in) Below is some example code: require puppet/face

Re: [Puppet-dev] Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-22 Thread david-dasz
Hi Trevor, In the case of a default node, regexp nodes or an external node classifier, there *is* no well-defined list of potential nodes any more. Having said that, a solution might be to use the puppet compiler's internals to parse the site.pp and friends manually and access the AST resulting

[Puppet-dev] (puppetlabs/puppet-dashboard) New pull request: (#6717) Fix failing dependency destroy tests

2011-11-22 Thread wearetherobots
Please review pull request #67: (#6717) Fix failing dependency destroy tests opened by (mmrobins) Description: Now that there are foreign key constraints in the database that do cascading deletes, the test database needs to have those constraints too. Currently,

Re: [Puppet-dev] Puppet IRC logs

2011-11-22 Thread Nick Moffitt
James Turnbull: I finally got around to fixing the IRC logs up a little and adding them to their own site: http://www.puppetlogs.com/ The site contains search-able IRC logs for #puppet and #puppet-dev going back to late 2007 or so. It's maintained by me (not Puppet Labs) so best to contact

Re: [Puppet-dev] Puppet IRC logs

2011-11-22 Thread Nick Moffitt
Nick Moffitt: James Turnbull: It's maintained by me (not Puppet Labs) so best to contact me for issues rather than bother anyone else. Aaaand Reply-To munging claims another victim! -- It is wrong to think that the task of physics is to find out how nature *is*. Physics concerns what we

Re: [Puppet-dev] Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-22 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This might just do it. I feel like I tried this and it didn't work but I'll give it another shot. Thanks! Trevor On 11/22/2011 03:10 AM, Dan Bode wrote: You could use the resource_type indirection to query all of the resource types and select

[Puppet-dev] (puppetlabs/puppet-module-tool) New pull request: (#4847) Add support for http_proxy environment variable for http requests

2011-11-22 Thread wearetherobots
Please review pull request #10: (#4847) Add support for http_proxy environment variable for http requests opened by (kbarber) Description: Previously we added support for using a HTTP proxy specific in puppet's configuration file. This patch adds support for the

Re: [Puppet-dev] Puppet IRC logs

2011-11-22 Thread James Turnbull
Nick Moffitt wrote: James Turnbull: I finally got around to fixing the IRC logs up a little and adding them to their own site: http://www.puppetlogs.com/ The site contains search-able IRC logs for #puppet and #puppet-dev going back to late 2007 or so. It's maintained by me (not Puppet Labs)

[Puppet-dev] (puppetlabs/facter) New pull request: (#2847) Add Krzysztof Wilczynski's mounts and devices facts and tests the

2011-11-22 Thread wearetherobots
Please review pull request #42: (#2847) Add Krzysztof Wilczynski's mounts and devices facts and tests the opened by (mkincaid) Description: (#2847) Add Krzysztof Wilczynski's mounts and devices facts and tests thereof. Opened: Tue Sep 06 23:37:23 UTC 2011

[Puppet-dev] (puppetlabs/puppet) New pull request: Changes related to Bug #10914

2011-11-22 Thread wearetherobots
Please review pull request #229: Changes related to Bug #10914 opened by (tangledhelix) Description: See https://projects.puppetlabs.com/issues/10914 Opened: Tue Nov 22 18:35:40 UTC 2011 Based on: puppetlabs:master

[Puppet-dev] (puppetlabs/puppet-dashboard) Closed pull request: (#6717) Fix failing dependency destroy tests

2011-11-22 Thread wearetherobots
On Tue Nov 22 18:39:48 UTC 2011 pull request #67 was closed. (#6717) Fix failing dependency destroy tests requested by (mmrobins) The pull request was merged by: lifton -- You received this message because you are subscribed to the Google Groups "Puppet Developers"

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Brice Figureau
On 22/11/11 20:05, Carl Caum wrote: [snip] I went ahead made the code in to a face and yes, it's sending the correct certificate now. However, I'm getting a 'Forbidden Request' error: Denying access: Forbidden request: puppetagent.localdomain(127.0.0.1) access to /facts/search [search]

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Nick Lewis
On Tuesday, November 22, 2011 at 11:05 AM, Carl Caum wrote: On Mon, Nov 21, 2011 at 11:21 PM, Nick Lewis n...@puppetlabs.com (mailto:n...@puppetlabs.com) wrote: On Mon, Nov 21, 2011 at 9:01 PM, Carl Caum c...@puppetlabs.com (mailto:c...@puppetlabs.com) wrote: I have a question about

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
On Tue, Nov 22, 2011 at 1:29 PM, Nick Lewis n...@puppetlabs.com wrote: On Tuesday, November 22, 2011 at 11:05 AM, Carl Caum wrote: On Mon, Nov 21, 2011 at 11:21 PM, Nick Lewis n...@puppetlabs.com wrote: On Mon, Nov 21, 2011 at 9:01 PM, Carl Caum c...@puppetlabs.com wrote: I have a

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
On Tue, Nov 22, 2011 at 1:26 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 22/11/11 20:05, Carl Caum wrote: [snip] I went ahead made the code in to a face and yes, it's sending the correct certificate now. However, I'm getting a 'Forbidden Request' error: Denying access:

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
Wow. I left the issue and came back later to it to discover I had been editing /etc/puppet/auth.conf and using PE. I should have been modifying /etc/puppetlabs/puppet/auth.conf. It works now, thanks for the help. On Tue, Nov 22, 2011 at 2:02 PM, Carl Caum c...@carlcaum.com wrote: On Tue,

Re: [Puppet-dev] Concerns about 0a3469752d1cd7d5b4835732204a48850214fb9d

2011-11-22 Thread Nick Lewis
On Sunday, November 20, 2011 at 11:25 AM, James Turnbull wrote: Trevor Vaughan wrote: This was committed such that all file diffs would go into the logs. Please be very vocal about announcing this and think about turning file diffs off as the default. I think that most users are

[Puppet-dev] (puppetlabs/puppet) New pull request: Feature/2.7.x/symbolic modes for the file type

2011-11-22 Thread wearetherobots
Please review pull request #230: Feature/2.7.x/symbolic modes for the file type opened by (daniel-pittman) Description: This adds a new feature, support for symbolic file modes, to Puppet. In addition to being able to specify the octal mode, you can now use the same

[Puppet-dev] (puppetlabs/facter) Closed pull request: (#6617) Deprecate DESTDIR environment variable for installer

2011-11-22 Thread wearetherobots
On Tue Nov 22 21:50:59 UTC 2011 pull request #102 was closed. (#6617) Deprecate DESTDIR environment variable for installer requested by (kbarber) The pull request was merged by: adrienthebo -- You received this message because you are subscribed to the Google Groups

[Puppet-dev] (puppetlabs/puppet) New pull request: Ticket/2.7.x/10940 deprecate apply for catalog

2011-11-22 Thread wearetherobots
Please review pull request #231: Ticket/2.7.x/10940 deprecate apply for catalog opened by (kelseyhightower) Description: Without this patch, the puppet apply command uses the --apply option to reference a Puppet catalog. This can cause a bit of confusion as both the

[Puppet-dev] (puppetlabs/puppet) Closed pull request: (#10940) Deprecate `--apply` in favor of `--catalog`

2011-11-22 Thread wearetherobots
On Tue Nov 22 22:33:14 UTC 2011 pull request #227 was closed. (#10940) Deprecate `--apply` in favor of `--catalog` requested by (kelseyhightower) -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this

Re: [Puppet-dev] Puppet IRC logs

2011-11-22 Thread James Turnbull
Nick Moffitt wrote: James Turnbull: I finally got around to fixing the IRC logs up a little and adding them to their own site: http://www.puppetlogs.com/ The site contains search-able IRC logs for #puppet and #puppet-dev going back to late 2007 or so. It's maintained by me (not Puppet Labs)

Re: [Puppet-dev] Searching the inventory service

2011-11-22 Thread Carl Caum
Or not. After fighting with this for quite some time, I seem to be hitting bug #7294. I can use REST API with curl to search for nodes using facts, but can't do it from a Face. This is the error I'm getting from the GET: No specified acceptable formats (*/*) are functional on this machine

[Puppet-dev] (puppetlabs/puppet) Closed pull request: (#6335) Allow optional trailing comma in argument lists.

2011-11-22 Thread wearetherobots
On Wed Nov 23 00:21:38 UTC 2011 pull request #59 was closed. (#6335) Allow optional trailing comma in argument lists. requested by (nanliu) -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group,

[Puppet-dev] (puppetlabs/hiera-puppet) New pull request: Rubygems is not required to use hiera

2011-11-22 Thread wearetherobots
Please review pull request #11: Rubygems is not required to use hiera opened by (hunner) Description: Hiera may be used if the hiera libs are sync'd from a puppet module via pluginsync, even without rubygems Opened: Wed Nov 23 02:09:11 UTC 2011 Based