/[adm]/puppet/modules/bcd/manifests/web.pp
ViewVC logotype

Annotation of /puppet/modules/bcd/manifests/web.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2559 - (hide annotations) (download)
Sat Mar 17 11:05:25 2012 UTC (10 years, 2 months ago) by misc
File size: 549 byte(s)
split base from init.pp, and simplify the variable declaration and lookup
by merging bcd::variable with the main class (so we can directly say bcd::login instead of using 
bcd::variable )

1 misc 2558 class bcd::web {
2     include bcd::base
3 misc 2559 # TODO simplify this
4     $bcd_home = $bcd::home
5 misc 2558
6     apache::vhost_base { "bcd.$::domain":
7     location => "$bcd_home/public_html",
8     content => template('bcd/vhost_bcd.conf'),
9     }
10    
11     # TODO should be merged with main file
12     file { "$bcd_home/public_html/.htaccess":
13     content => template('bcd/.htaccess')
14     }
15    
16     # not sure if that's useful, since the file is public and trivially
17     # bruteforced
18     file { "$bcd_home/public_html/.htpasswd":
19     content => template('bcd/.htpasswd')
20     }
21     }

Properties

Name Value
svn:keywords ID Date Rev

  ViewVC Help
Powered by ViewVC 1.1.28