File: namevirtualhost.pp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 521 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# @summary
#   Enables name-based virtual hosts 
#
# Adds all related directives to the `ports.conf` file in the Apache HTTPD configuration 
# directory. Titles can take the forms `\*`, `\*:\<PORT\>`, `\_default\_:\<PORT\>`, 
# `\<IP\>`, or `\<IP\>:\<PORT\>`.
define apache::namevirtualhost {
  $addr_port = $name

  # Template uses: $addr_port
  concat::fragment { "NameVirtualHost ${addr_port}":
    target  => $apache::ports_file,
    content => epp('apache/namevirtualhost.epp', { 'addr_port' => $addr_port }),
  }
}