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


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to