aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2012-07-05 12:55:18 +0000
committerDexter Morgan <dmorgan@mageia.org>2012-07-05 12:55:18 +0000
commite97a5d967bedc472cb975dc24dd80e659362775c (patch)
tree9616ba58c77b97baefc24d0e647061092bd4b533
parent36d446c202afb74b7bd6fa9ed6d78c16987c3fbb (diff)
downloadpuppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar
puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar.gz
puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar.bz2
puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar.xz
puppet-e97a5d967bedc472cb975dc24dd80e659362775c.zip
make puppet handle robots.txt
-rw-r--r--modules/bugzilla/manifests/init.pp7
-rw-r--r--modules/bugzilla/templates/robots.txt10
2 files changed, 17 insertions, 0 deletions
diff --git a/modules/bugzilla/manifests/init.pp b/modules/bugzilla/manifests/init.pp
index 313ed6d3..83efa50d 100644
--- a/modules/bugzilla/manifests/init.pp
+++ b/modules/bugzilla/manifests/init.pp
@@ -60,4 +60,11 @@ class bugzilla {
recurse => true,
require => Subversion::Snapshot[$bugzilla_location],
}
+
+ file { '/usr/share/bugzilla/www/robots.txt':
+ group => 'apache',
+ mode => '0640',
+ content => template('bugzilla/robots.txt'),
+ require => Package['bugzilla-extension-sitemap'],
+ }
}
diff --git a/modules/bugzilla/templates/robots.txt b/modules/bugzilla/templates/robots.txt
new file mode 100644
index 00000000..63639f02
--- /dev/null
+++ b/modules/bugzilla/templates/robots.txt
@@ -0,0 +1,10 @@
+User-agent: *
+Disallow: /
+Allow: /*index.cgi
+Allow: /*page.cgi
+Allow: /*show_bug.cgi
+Allow: /*describecomponents.cgi
+Disallow: /*show_bug.cgi*ctype=*
+Disallow: /*show_bug.cgi*format=multiple*
+Disallow: /*page.cgi*id=voting*
+Sitemap: https://bugs.mageia.org/page.cgi?id=sitemap/sitemap.xml