Manage etherpad-lite robots.txt.

Add a robots.txt file for etherpad lite. Disallow / because we are using
the pretty URLs.

Change-Id: Ic589923d142fe8c950534c4419582502bde98a3a
Reviewed-on: https://review.openstack.org/14422
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2012-10-12 17:09:14 -07:00 committed by Jenkins
parent 745cc18290
commit 33f59792c1
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View File

@ -42,6 +42,15 @@ class etherpad_lite::site (
require => Class['etherpad_lite']
}
file { "${etherpad_lite::base_install_dir}/etherpad-lite/src/static/robots.txt":
ensure => present,
source => 'puppet:///modules/etherpad_lite/robots.txt',
owner => $etherpad_lite::ep_user,
group => $etherpad_lite::ep_user,
mode => '0644',
require => Class['etherpad_lite'],
}
include logrotate
logrotate::file { 'epliteerror':
log => "${etherpad_lite::base_log_dir}/${etherpad_lite::ep_user}/error.log",