On Oct 13, 2008, at 11:19 AM, Joel Nimety wrote:

>
>
>
> Luke Kanies wrote:
>> On Oct 13, 2008, at 10:24 AM, Joel Nimety wrote:
>>
>>
>> That would be a completely new subsystem to transactions -- instant
>> action.  The 'notify' and 'subscribe' mechanisms all just involve
>> queues.
>>
>> I'm not entirely convinced that's the right solution, since it's not
>> come up before; I'd prefer to find a way to fit it into the current
>> design, rather than adding new functionality.
>
> I don't know anything of the puppet internals so I can't speak to the
> complexity of any internal solution. But, I do think a puppet specific
> solution would be very useful and has some compelling advantages.
>
> * Allows for consistent and standardized backups via filebucket
> * Can be used by any custom type or exec, no duplication of code

It's just that the ordering you're describing would be quite  
complicated, and I'm not sure it's worth it.

>
>> The augeas type could do this itself, of course -- automatically back
>> up any files it should be notifying -- without adding a new  
>> subsystem.
>
> Are you suggesting I can add a backup call in the augeas plugin?  I
> hadn't considered that.  What about "SimpleText" file edits?


Yes, you can easily use a filebucket to do the backup yourself.  Look  
at the handlebackup method (which is certainly more complicated than  
it needs to be) in type/file.rb.

I don't know what SimpleText file edits are, so I can't hel pyou there.

-- 
I respect faith, but doubt is what gets you an education.
     -- Wilson Mizner
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


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

Reply via email to