diff options
author | Damien Lallement <dams@mageia.org> | 2012-01-06 15:06:28 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2012-01-06 15:06:28 +0000 |
commit | a9721784563db29c030b827cdc7d075be21e2c16 (patch) | |
tree | d326cf5516898a1a4bdf1a81885517882e4bb699 /modules/bcd/manifests/init.pp | |
parent | b771b90d114919a97789d7ca81f5bfa82aab8738 (diff) | |
download | puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar.gz puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar.bz2 puppet-a9721784563db29c030b827cdc7d075be21e2c16.tar.xz puppet-a9721784563db29c030b827cdc7d075be21e2c16.zip |
- restrict access to bcd.mageia.org via http
- add '.htaccess' and '.htpasswd' files
- add 'AllowOverride All' and 'Options FollowSymlinks' options
Diffstat (limited to 'modules/bcd/manifests/init.pp')
-rw-r--r-- | modules/bcd/manifests/init.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/bcd/manifests/init.pp b/modules/bcd/manifests/init.pp index bba103f2..e4f4cd45 100644 --- a/modules/bcd/manifests/init.pp +++ b/modules/bcd/manifests/init.pp @@ -43,6 +43,22 @@ class bcd { location => "$bcd_home/public_html", content => template('bcd/vhost_bcd.conf'), } + file {".htaccess": + path => "$bcd_home/public_html/", + ensure => present, + owner => bcd, + group => bcd, + mode => 755, + content => template("bcd/.htaccess") + } + file {".htpasswd": + path => "$bcd_home/public_html/", + ensure => present, + owner => bcd, + group => bcd, + mode => 755, + content => template("bcd/.htpasswd") + } } class rsync inherits base { |