Deploying multiple Vhosts on a Provisioned Host

Hi All,

I would like to deploy multiple vhosts on a single host using a override
parameter(s).

Should I create a vhost array in a parameter and override this one multiple
times ?

It would be the most nice when you could have parameter groups where each
group is it's own vhost array and has it's own paramaters you can override
or not.

Advice would be great!

Cheers,

Matt

as an ENC, Foreman cant specify resource creation as such.

they way i got around this is creating my own 'wrapper' module that created
resources from a smart parameter array that could be overridden.

something like this:

class myapache2 (
virtual_hosts = $myapache2::params::wherever::virtualhosts
) {

class {'apache': default_vhost => false, mpm_module => 'prefork' }

create_resources(apache::vhost, $virtual_hosts)

}

this gives you the flexibility of default vhost values, and the possibility
to feed in your own custom vhosts by overriding the smart parameters for
your class.

rowy

ยทยทยท On Saturday, February 15, 2014 10:29:20 PM UTC+8, yamaka...@gmail.com wrote: > > Hi All, > > I would like to deploy multiple vhosts on a single host using a override > parameter(s). > > Should I create a vhost array in a parameter and override this one > multiple times ? > > It would be the most nice when you could have parameter groups where each > group is it's own vhost array and has it's own paramaters you can override > or not. > > Advice would be great! > > Cheers, > > Matt >