Dear all,
I have a class where I declare one file and many execs with
create_resources:
class module::yeah {
file {"myfile"}
$hash = parseyaml(inline_template('hereigeneratemynicehash.to_yaml'))
create_resources ('exec', $hash)
}
And I need to create a dependency of the kind inside that class:
File["myfile"] -> Exec[*]
I have tried setting "require" => File['myfile'] inside my template, but
File is not recognized inside the template. And if I quote it, Puppet
does not recognize it as a File resource.
Do you guys see a way how I can create the dependency?
Thanks!
Pablo
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.