"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
Bill Waterson (Calvin & Hobbes)
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6a2b9af3-0fb9-4c38-b0a1-7245b2762d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Separate the client base directory resource from the application directory resource.When declaring each application directory, add a “require” parameter with a value of the client base directory.
It sounds like your atqapache::vhost type is attempting to create the /var/www/dev/user1/client1 directory for every vhost that is defined. Can you post your definition for this type here?
if !defined(File["$client_base"]) {
file { [ "$client_base", ]:
ensure => 'directory', owner => "$owner", group => "$group", mode => 0744, }
}
I'd prefer to see the entire vhost.pp code but it looks like the issue is the same as I mentioned previously, you have multiple atqapache::vhost resources attempting to manage the client base directory. I've ran into a similar issue with my own modules and was able to hack around it using the defined() function. For example:
if !defined(File["$client_base"]) {
file { [ "$client_base", ]:ensure => 'directory',owner => "$owner",group => "$group",mode => 0744,}
}
There may be a better option but this way ensures that the resource is only created once.
On Monday, September 10, 2018 at 11:18:34 AM UTC-5, Michael Watters wrote:I'd prefer to see the entire vhost.pp code