Re: [Puppet Users] Multiple vhosts, same document root

2017-07-11 Thread Neil - Puppet List
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

Re: [Puppet Users] Multiple vhosts, same document root

2017-07-07 Thread 'Bas van de Wiel' via Puppet Users
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

[Puppet Users] Multiple vhosts, same document root

2017-07-06 Thread bas via Puppet Users
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