1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
# @summary
# Creates `apache::vhost` defined types.
#
# @note See the `apache::vhost` defined type's reference for a list of all virtual
# host parameters or Configuring virtual hosts in the README section.
#
# @example To create a [name-based virtual host](https://httpd.apache.org/docs/current/vhosts/name-based.html) `custom_vhost_1`
# class { 'apache::vhosts':
# vhosts => {
# 'custom_vhost_1' => {
# 'docroot' => '/var/www/custom_vhost_1',
# 'port' => 81,
# },
# },
# }
#
# @param vhosts
# A hash, where the key represents the name and the value represents a hash of
# `apache::vhost` defined type's parameters.
#
class apache::vhosts (
Hash $vhosts = {},
) {
include apache
create_resources('apache::vhost', $vhosts)
}
|