]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/tests/vhost_ip_based.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / tests / vhost_ip_based.pp
1 ## IP-based vhosts on any listen port
2 # IP-based vhosts respond to requests on specific IP addresses.
3
4 # Base class. Turn off the default vhosts; we will be declaring
5 # all vhosts below.
6 class { 'apache':
7   default_vhost => false,
8 }
9
10 # Listen on port 80 and 81; required because the following vhosts
11 # are not declared with a port parameter.
12 apache::listen { '80': }
13 apache::listen { '81': }
14
15 # IP-based vhosts
16 apache::vhost { 'first.example.com':
17   ip       => '10.0.0.10',
18   docroot  => '/var/www/first',
19   ip_based => true,
20 }
21 apache::vhost { 'second.example.com':
22   ip       => '10.0.0.11',
23   docroot  => '/var/www/second',
24   ip_based => true,
25 }