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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
class websites::admin inherits websites::hosting::admin {
#apache::site { "admin":
# ticket => '64',
# docroot => "${apache_sites_folder}/admin/trac/htdocs",
# use => [ "Trac admin" ],
# redirect_match => "trac",
# mpm => false,
#}
#apache::site { "munin":
# ticket => '153',
# docroot => '/var/www/munin',
# owner => "munin",
# group => "munin",
# mpm => false,
#}
#apache::site { "nagios":
# source => true,
# docroot => '/usr/share/nagios3/htdocs',
# mpm => false,
#}
}
class websites inherits websites::hosting {
# Website definitions
#
# TODO:
#
# - Use virtual resources:
# - Tags by locations where the site can be hosted.
# - Possible integration with cache proxies.
#
#apache::site { "site":
# source => true,
# ticket => '001',
# docroot => '/var/www/site',
#}
#database::instance { "site":
# password => 'xxx',
#}
}
|