>   def exists?
>     File.file? resource[:path]
>   end
> end


Michael.
It looks like in your exists? method you are just checking that the
tnsnames.ora file exists.    So if that file is present the exists?
method returns a true which is saying that the resource is present and
accurate.    In the exists? method you would need to parse the
tnsnames.ora file and compare the contents against what is desired.
If the contents of the tnsnames.ora are accurate then return true.

I'm not an expert in types/providers so you may want to validate my
input by inspecting existing types that kind of work the same way like
host or ssh_authorized_keys.
HTH.  Derek.

-- 
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