aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/manifests/web.pp
blob: 5e75191ed030549b81d1c46ce2073394cfbff43d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class bcd::web {
    include bcd::base 
    # TODO simplify this
    $bcd_home = $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')
    }
}