view modules/apache/manifests/vhosts.pp @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +0100
parents b8d6ada284dd
children
line wrap: on
line source

# @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)
}