[Puppet-dev] Puppet out_of_sync_resources

2013-11-01 Thread heijmans
Hello, I asked the following question in the mcollective-users group [1] but RI said it was better to ask it here. What is the definition of out_of_sync_resources? As I see it now being reported on pendingchanged resources, which seems strangs to me. Stefan [1]

[Puppet-dev] Catalog compilation improper ordering and anchoring

2013-11-01 Thread Jesi Major
We're having an issue where the catalog doesn't appear to be compiling in the proper order, causing a resource to be defined twice (since the if ! defined block runs first) and the catalog compilation to fail: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate

Re: [Puppet-dev] Catalog compilation improper ordering and anchoring

2013-11-01 Thread Chris Spence
That's parse order dependent during compile (i.e. the order stuff gets included, parsed and magicked during compile etc) - anchors aren't really relevant here. So your commit has changed the include order I would expect. Best either make them virtual and realize them, or wrap them both in if !

[Puppet-dev] Re: Catalog compilation improper ordering and anchoring

2013-11-01 Thread John Bollinger
On Friday, November 1, 2013 11:52:36 AM UTC-5, Jesi Major wrote: We're having an issue where the catalog doesn't appear to be compiling in the proper order It took me a minute to parse Chris's response, so in case it's taking you longer, it boils down to this: there is no such thing as

Re: [Puppet-dev] Catalog compilation improper ordering and anchoring

2013-11-01 Thread Jesi Major
Thanks very much for the explanation. This is what I was starting to suspect, but was hoping someone would tell me I was wrong. Could you possibly elaborate on what you mean by make them virtual and realize them? I considered wrapping them both in if ! defined, but the /data directory really

[Puppet-dev] Re: Catalog compilation improper ordering and anchoring

2013-11-01 Thread Jesi Major
John, apologies for placing this in the wrong group. Would you like me to repost there, or is it okay if Chris answers my question here? You explained more eloquently what I was trying to; wasn't quite sure how to explain the functionality with classes not inherently constrained relative to

[Puppet-dev] Re: Catalog compilation improper ordering and anchoring

2013-11-01 Thread John Bollinger
On Friday, November 1, 2013 1:58:59 PM UTC-5, Jesi Major wrote: John, apologies for placing this in the wrong group. Would you like me to repost there, or is it okay if Chris answers my question here? I don't mean to try to police this group. I'm just saying that it may be to your

[Puppet-dev] Re: Catalog compilation improper ordering and anchoring

2013-11-01 Thread Jesi Major
No problem! And sorry again, think I have answered my own question to Chris anyway :) http://docs.puppetlabs.com/guides/virtual_resources.html On Friday, November 1, 2013 1:12:24 PM UTC-6, John Bollinger wrote: On Friday, November 1, 2013 1:58:59 PM UTC-5, Jesi Major wrote: John, apologies

[Puppet-dev] Re: Puppet out_of_sync_resources

2013-11-01 Thread Eric Sorenson
Hi Stefan, the way I understand it (and hopefully someone will correct me), out_of_sync indicates a total of resources which might need changes. So if we're in enforce mode (not no-op) out_of_sync would be the total of successful + failed changes. If we're in no-op, out_of_sync is the number

[Puppet-dev] Implementing hiera mapping of derived types to nodes

2013-11-01 Thread Nathan Nobbe
Hi, I'm trying to implement a new feature of sorts and looking for some direction from folks who understand the puppet code. What I'm trying to do is create an ability to specify derived types via hiera much like hiera_include() works for classes. A quick aside, and the reason I'm interested

[Puppet-dev] Re: Implementing hiera mapping of derived types to nodes

2013-11-01 Thread Nathan Nobbe
Ouch, looks like it was just erroneous ' characters in the required value. e.g. { required = File['/etc/blah'] } instead of { required = File[/etc/blah] } now I see create_resources is working fine without any of the ordering logic I was talking about. Had fun poking around the internals