I have a custom type that I am trying to get to compare the contents
of two files.  Specifically, the user will specify (in the resource)
the location of the file which will serve as the base configuration,
and the provider should compare this file to another file in another
location.  I know that the "file" resource already accomplishes this
and could be used, but there are other actions that need to be
performed within the provider in order to make this work, so I am
trying to figure out how the getter and setter methods would work in
this instance.

For example, if I specify that the resource "myresource" has
"baseConfig => /usr/lib/customConfig", I want the provider to obtain
the current content within the existing file "/etc/config" and replace
with "customConfig" if the content differs.  Any suggestions? My first
thought is to use the parsedFile class, but I cannot figure out how
the getter and setter methods interact in this case.  In other words,
if I have a getter return the contents of the file, will Puppet
automatically compare the contents to the specified "baseConfig" file,
or will I need to do something to prompt this?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to