aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/manifests/web.pp
blob: fba6df1c35c060422b56db29fe3de3ddcd2b7f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class bcd::web {
    include bcd::base 
    $bcd_home = $bcd::variable::bcd_home

    apache::vhost_base { "bcd.$::domain":
	    location => "$bcd_home/public_html",
	    content  => template('bcd/vhost_bcd.conf'),
	}

    # TODO should be merged with main file
	file { "$bcd_home/public_html/.htaccess":
	    content => template('bcd/.htaccess')
	}

    # not sure if that's useful, since the file is public and trivially 
    # bruteforced
	file { "$bcd_home/public_html/.htpasswd":
        content => template('bcd/.htpasswd')
    }
}