Re: [Puppet-dev] Accessing attribute value of one resource in another resource impleataion

2015-06-20 Thread ganesh634
UTC+10, ganesh634 wrote: @Reid: Agreed it make sense to reference another resource instead of path string. The links you shared are very helpful. Thanks!!! @Dylan: While going through defined types i came across vhost here: https://github.com/puppetlabs/puppetlabs-apache/blob/master

Re: [Puppet-dev] Accessing attribute value of one resource in another resource impleataion

2015-06-17 Thread ganesh634
idea - they're 1-to-many and many-to-1 relationships - and probably complicated to make work. On Wed, Jun 17, 2015 at 7:38 AM, ganesh634 gane...@gmail.com javascript: wrote: Pasted below an example relation for new resource say 'new_type'. file { interface

[Puppet-dev] Accessing attribute value of one resource in another resource impleataion

2015-06-17 Thread ganesh634
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

[Puppet-dev] Accessing attribute value of defined in a resource in another resource implementation

2015-06-17 Thread ganesh634
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

[Puppet-dev] Identifying change in file content on subsequent client run

2014-10-10 Thread ganesh634
How can i identify if contents of file are changed or not between subsequent client run? Need this information for implementing a new resource type which will do some processing only if the file content is changed. The file will be created using template resource type. Is there any way to