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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 955 by misc, Mon Feb 7 09:50:02 2011 UTC revision 1010 by boklm, Fri Feb 11 16:46:37 2011 UTC
# Line 1  Line 1 
1  class websites {  class websites {
2        class base {
3           # FIXME :
4           # We should be able to define this path on each host.
5           # Maybe using Facter ?
6           $webdatadir = '/srv/web1-dd0/www'
7    
8           file { "$webdatadir":
9              ensure => directory,
10              mode => 755,
11           }
12        }
13    
14      # should expire on June 2011      # should expire on June 2011
15      class donate {      class donate {
16          apache::vhost_other_app { "donate.$domain":          apache::vhost_other_app { "donate.$domain":
# Line 6  class websites { Line 18  class websites {
18          }          }
19      }      }
20    
21        # vhost to host static files used by web sites
22        class static inherits base {
23            $vhostdir = "$webdatadir/static.$domain"
24            $svn_location = "svn://svn.$domain/svn/web/www/trunk/g/"
25            apache::vhost_other_app { "static.$domain":
26                vhost_file => 'websites/vhost_static.conf',
27            }
28    
29            subversion::snapshot { $vhostdir:
30                source => $svn_location
31            }
32        }
33    
34      class svn {      class svn {
35          apache::vhost_redirect { "svn.$domain":          apache::vhost_redirect { "svn.$domain":
36              url => "http://svnweb.$domain/",              url => "http://svnweb.$domain/",

Legend:
Removed from v.955  
changed lines
  Added in v.1010

  ViewVC Help
Powered by ViewVC 1.1.30