--Pasted below an example relation for new resource say 'new_type'.
file
{ "interface":
path => "/var/tmp/test.txt",
content => template("module/test_template.erb"),
notify => new_type['sample'],
}
new_type
{ "sample":
path => "/var/tmp/test.txt",
active =>true,
ensure=>present,
}
In 'new_type' resource implementation I want to access value of 'path' attribute value from 'file' resource to determine certain action in 'new_type' resource.
With current approach I have to keep ‘path’ attribute in ‘new_type’ and mandate user to have ‘path’ value same as that of ‘path’ value in file resource.
How can I access 'file’ resource 'path' attribute value in 'new_type' resource implementation?
If it is possible I can remove the 'path' attribute from 'new_type' resource body as value of both path need to be same all the time.
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/004da5f1-be9f-4352-a1f8-b43f34c2d859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Puppet Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-dev/oBrN1RToyUI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/fb4e828e-0284-416d-8714-3b9314b47277%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/ceb93c4a-9b41-47dc-bb84-3f8daa499085%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CA%2B6y2sFZKvGrtwDnKFijhjWRntjs4pSmrFsr87vNaZ39h_QiFA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/1434790261626.a03a8a9e%40Nodemailer.
Is there a way to retrieve the parameter values of resource for previous client run during current execution of client.The reason for this question is how to handle scenario where path value of 'new_type' resource is changed to already