diff options
author | Dexter Morgan <dmorgan@mageia.org> | 2012-07-05 12:55:18 +0000 |
---|---|---|
committer | Dexter Morgan <dmorgan@mageia.org> | 2012-07-05 12:55:18 +0000 |
commit | e97a5d967bedc472cb975dc24dd80e659362775c (patch) | |
tree | 9616ba58c77b97baefc24d0e647061092bd4b533 /modules/bugzilla | |
parent | 36d446c202afb74b7bd6fa9ed6d78c16987c3fbb (diff) | |
download | puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar.gz puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar.bz2 puppet-e97a5d967bedc472cb975dc24dd80e659362775c.tar.xz puppet-e97a5d967bedc472cb975dc24dd80e659362775c.zip |
make puppet handle robots.txt
Diffstat (limited to 'modules/bugzilla')
-rw-r--r-- | modules/bugzilla/manifests/init.pp | 7 | ||||
-rw-r--r-- | modules/bugzilla/templates/robots.txt | 10 |
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 |