Hi

> The issue is that I don't know the exact names of all the nagios_hosts
> ahead of time, so I can't declare file resources explicitly, each host
> has it's own host file.
>
> So I've tried declaring a "file" resource for the directory that the
> nagios_host files get deposited in and using "recurse" to set the
> permissions on all the files in the directory but I get an error in
> puppet saying I have a circular dependency, I'm assuming because the
> "nagios_host" type explicitly sets permissions on the files.

or you could write a wrapper define which manages on one side the file  
and the nagios host entry.

like I have done it in the yum::repo wrapper:  
https://git.puppet.immerda.ch/?p=module-yum;a=blob;f=manifests/init.pp;h=0a5e892ddc8177dba194ad1b515be0bbb4302c2b;hb=HEAD

cheers pete

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to