Hi all!

I'm working on a custom type that applies xpaths to files.  I expect the 
interface to look something like:

xpath { "some update":
      xpath => "/some/xpath",
      command => "replace",
      value => "newvalue",
      file => "/path/to/file.xml"
}

I'm having a little trouble picking the namevar.  It seems logical that the 
xpath attribute should be the namevar, but I'm a little hung up on the fact 
that it has to be unique among all xpath resources.  In theory, I might 
want to apply the same xpath to many different files but with different 
values.  I ran across a mention in the documentation that the exec type 
allows duplicate namevars, but going through the implementation, it isn't 
clear to me how that is done.  Is it just a matter of each exec declaration 
having a unique title but the same command?

Thanks for the help!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/afc40e7f-e6e9-41f6-b541-07c5b126f02b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to