Ok, I have the solution: The provider now creates lines where the $name ist stored as a comment, then I can use this to identify the resources.
see: http://pastie.org/518507 for the working version. Thanks, udo. On 20.06.2009, at 20:19, Joe McDonagh wrote:
Udo Waechter wrote:Hi Udo, you might want to check out the puppt-dev list if you don't getHello all. I have just started to implement my first type and a parsed-file provider for it. It is called nfs_export and it should manage nfs-exports via /etc/exports. First, here is the type: http://pastie.org/518506 and here the parsedfile provider: http://pastie.org/518507 Now, this is my absolute first approach to write a provider, there is much functionality that has to be added. The problem that I have is the following: - All resources that use $name != $export_point are added on each puppetrun. I have looked into the crontab provider, which uses a comment line to identify the name.Other providers, like malialias' alias.rb do not use this kind of "hack?"My provider is based on the alias.rb provider. Unfortunately I can notget it to recognize resources by name. Can someone tell me the solution to this problem? Thank you very much, udo.a response here. --~--~---------~--~----~------------~-------~--~----~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 -~----------~----~----~----~------~----~------~--~---
-- :: udo waechter - [email protected] :: N 52º16'30.5" E 8º3'10.1" :: genuine input for your ears: http://auriculabovinari.de :: your eyes: http://ezag.zoide.net :: your brain: http://zoide.net
smime.p7s
Description: S/MIME cryptographic signature
