Hello
stdlib package has a function ensure_resource that would allow you to
create the directory as many times as needed.
out of curiosity why not use the puppetlabs apache module?
Cheers
Neil
On 7 Jul 2017 09:39, "'Bas van de Wiel' via Puppet Users" <
puppet-users@googlegroups.com> wrote:
> S
So I managed to hack a fix for this:
|# Hackish pair of execs to allow multiple sites with the same docroot|
|# See: https:||//confluence.maxserv.com/display/OPS/MaxServ+Apache|
|exec| |{ ||"${name}_${webroot}"||:|
|||cwd => ||'/'||,|
|||user=> ||'root'||,|
|||path=>
||'/sbin:/bin:/u
Hello Puppet users,
I'm working on a webserver module that needs to ensure directories for
document roots. I tried doing this by using file resources like so:
file { 'vhost-A':
ensure => 'directory',
path => '/var/www/sharedvhost',
...clipped for brevity...
}
file { 'vhost-B':
ensur