I'm trying to create a virtual host file only if the document root directory exists. It doesn't look like puppet is seeing the require metaparameter. Currently, the file is being created whether or not the document root directory exists. What is the best way to currently do this?
I'm trying to create a file called site1.conf in /apps/apache/conf.d only if /var/www/html/site1 directory exists. file { "/apps/apache/conf.d/site1.conf": ensure => present, content => template("apache/virtual_host.erb"), notify => Service["jboss_apache"], require => File["/var/www/html/site1"] } --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---