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

2015-06-20 Thread Ganesh Nalawade
manifests: As long as your defined type is sitting in a file that follows the namespacing rules it will be accessible just like any other resource type: https://docs.puppetlabs.com/puppet/latest/reference/lang_namespaces.html On Sat, Jun 20, 2015 at 12:02 AM, Ganesh Nalawade ganesh...@gmail.com

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

2015-06-19 Thread Ganesh Nalawade
Thanks Dylan. This approach looks good as and users don't have to add file resource explicitly. define new_type::something ( $file_path, ) { file { $file_path: ensure = file, notify= New_type['another_resource'], ---*'another_resource' must be a variable as it is title of

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

2015-06-17 Thread Ganesh Nalawade
@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/manifests/vhost.pp I am not very