Mercurial > repos > other > Puppet
comparison modules/apache/tests/vhost_ip_based.pp @ 0:956e484adc12
Initial public release of Puppet configs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 16 Aug 2014 19:47:38 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:956e484adc12 |
---|---|
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 } |