/[adm]/puppet/deployment/websites/manifests/init.pp
ViewVC logotype

Annotation of /puppet/deployment/websites/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1608 - (hide annotations) (download)
Sun May 15 17:36:59 2011 UTC (12 years, 11 months ago) by boklm
File size: 2076 byte(s)
change $webdatadir to /var/www/vhosts
1 misc 656 class websites {
2 boklm 1010 class base {
3 boklm 1608 $webdatadir = '/var/www/vhosts'
4 boklm 1010 }
5    
6 misc 656 # should expire on June 2011
7     class donate {
8     apache::vhost_other_app { "donate.$domain":
9     vhost_file => "websites/vhost_donate.conf",
10     }
11     }
12 misc 955
13 boklm 1010 # vhost to host static files used by web sites
14     class static inherits base {
15     $vhostdir = "$webdatadir/static.$domain"
16     $svn_location = "svn://svn.$domain/svn/web/www/trunk/g/"
17     apache::vhost_other_app { "static.$domain":
18     vhost_file => 'websites/vhost_static.conf',
19     }
20    
21 boklm 1015 file { $vhostdir:
22     ensure => directory,
23     mode => 655,
24     }
25    
26     subversion::snapshot { "$vhostdir/g":
27 boklm 1010 source => $svn_location
28     }
29     }
30    
31 boklm 1583 class hugs inherits base {
32     $vhostdir = "$webdatadir/hugs.$domain"
33     $svn_location = "svn://svn.$domain/svn/web/hugs/public/"
34     apache::vhost_base { "hugs.$domain":
35     location => $vhostdir,
36     }
37    
38     subversion::snapshot { "$vhostdir":
39     source => $svn_location
40     }
41     }
42    
43 boklm 1592 class releases inherits base {
44     $vhostdir = "$webdatadir/releases.$domain"
45     $svn_location = "svn://svn.$domain/svn/web/releases/"
46     apache::vhost_base { "releases.$domain":
47     location => $vhostdir,
48 pterjan 1599 options => [ "FollowSymLinks" ]
49 boklm 1592 }
50 boklm 1607 apache::vhost_base { "ssl_releases.$domain":
51     vhost => "releases.$domain",
52     use_ssl => true,
53     location => $vhostdir,
54     options => [ "FollowSymLinks" ]
55     }
56 boklm 1592
57     subversion::snapshot { "$vhostdir":
58     source => $svn_location
59     }
60     }
61    
62 misc 955 class svn {
63     apache::vhost_redirect { "svn.$domain":
64     url => "http://svnweb.$domain/",
65     }
66     }
67 misc 1104
68     class forum_proxy {
69    
70     $web_domain = "forums.$domain"
71     host { "$web_domain":
72     ip => '192.168.122.131',
73     ensure => 'present',
74     }
75    
76     apache::vhost_reverse_proxy { "$web_domain":
77     url => "http://$web_domain/",
78     }
79    
80     apache::vhost_reverse_proxy { "ssl_$web_domain":
81     vhost => $web_domain,
82     use_ssl => true,
83     url => "http://$web_domain/",
84     }
85     }
86 misc 656 }

  ViewVC Help
Powered by ViewVC 1.1.30