aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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