Hi list, Here's my files directory in my apache module:
files | +-> ted.haha.com bob.haha.com etc.haha.com I have a custom myexists function that returns boolean. I'd like to check for a vhosts directory underneath each of those $fqdn directories, i.e., if myexits("/var/puppet/modules/apache/files/${fqdn}/vhosts") { # serve every file in that directory to /etc/httpd/vhosts } else { # do nothing } I want it to be dynamic. If a file is in that dir, then write it out the host's /etc/httpd/vhosts The files will be named things like www.haha.com, my.haha.com, www.haha.org, secure.haha.com, etc. Can someone recommend an easy way to accomplish this? TIA, Jeff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---