I would be interested to know if you found a solution for this...? 

Adam 

On Monday, 2 September 2013 11:57:44 UTC+1, kashif wrote:
>
>
> Hi 
> I am using create_resource to create a dir and then mount it. I am using 
> two create_resources and want one to be completed before other. 
>
> $mount_point = hiera('test::mount_point', []) 
> $defaults = {
>  'ensure' => 'directory',
> }
> $mountit = hiera('test::mountit')
> create_resources (file, $mount_point, $defaults)
> create_resources (mount, $mountit)
>
> hiera_yaml is
>
> test::mount_point:
>   '/local_area':
>         owner: root
>         group: root
>         mode: 0644
>  
> test::mountit:
>    '/local_area':
>          device  : "mymachine:/software"
>          fstype  : "nfs"
>          ensure  : "mounted"
>          options : "nfsvers=3,tcp,noatime,hard,intr,exec,rw,bg,nosuid"
>          atboot  : true
> #         require : [ File['/local_area'] ],
>    
>
> It works if I comment out require line but fail with this error if I 
> un-comment require line
>
> Error: Failed to apply catalog: Could not find dependency 
> File['/local_area'] for Mount[/local_area]
>
> Is there any other way to chain two create_resources statements ?
>
> Thanks
> Kashif
>
>
>
-- 
This message may contain confidential material. If you are not the intended 
recipient, please notify the sender and destroy all copies.
We may monitor communications to and from our network.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a4755499-86d7-40ef-915a-0c094c74d3a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to