aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/manifests/web.pp
blob: 8a8ccc58172273e37608fc6f676e2e9f524ac3e0 (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')
    }
}