On Aug 25, 2009, at 1:57 PM, S H wrote:

> If this is the wrong list, please let me know. I'm emailing puppet- 
> dev since this is firmly in the realm of Puppet code rather than  
> typical manifest implementation.

I think this is the right list.  At the least, I read this one far  
more than -users, and I'm likely to be the only person who knows some  
of this stuff, unfortunately.

>
> I'm not sure if this is a bug or if I'm doing it wrong, so any help  
> is appreciated. This issue exposed itself while I was working on my  
> Bacula type/provider and I have confirmed that it is also a problem  
> with Naginator.
>
> Using Naginator as the example, if I have a manifest like this:
>
>        nagios_host { "test1":
>                alias => "alias1",
>                address => "address1",
>        }
>
>        nagios_contactgroup { "test2":
>                target => "/etc/nagios/nagios_host.cfg",
>                alias => "alias2",
>        }
>
> Only one of the changes will go through at a time. If I add another  
> nagios_host to the manifest, either both nagios_host configurations  
> or the nagios_contactgroup configuration will go through.
>
> What I suspect is probably very different than the reality, but here  
> it is anyway: provider instances for a given type share the @records  
> value so modifications to one are reflected in all of them.Different  
> types don't share @records values, so flushing leaves the last man  
> standing.
>
> Obviously, I still haven't figured out the exact details. Can anyone  
> shed any light on this?

Um, that's pretty strange, and I don't really know what could be  
causing it.  I've certainly never heard of anything like it.

Each provider class should be completely independent, and there's no  
way that flushing one should cause another not to get flushed.

Are you saying that the changes don't get logged, or that they don't  
happen?  If they don't even get logged, do you get anything  
informative if you run with --verbose --evaltrace?

-- 
Trying to determine what is going on in the world by reading
newspapers is like trying to tell the time by watching the second
hand of a clock. --Ben Hecht
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to