Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/trac/manifests/init.pp

Issue 5748484741267456: Issue #615 Added anti-spam automation to Trac at issues1. (Closed)
Patch Set: Removed trust from authenticated users. Created June 4, 2014, 9:42 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | modules/trac/templates/trac.ini.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/trac/manifests/init.pp
===================================================================
--- a/modules/trac/manifests/init.pp
+++ b/modules/trac/manifests/init.pp
@@ -106,6 +106,18 @@
unless => "python -c 'import themeengine'",
}
+ package { 'spambayes':
+ ensure => "installed"
+ }
+
+ exec { 'install_TracSpamFilter':
+ command => "pip install svn+http://svn.edgewall.com/repos/trac/plugins/1.0/spam-filter",
+ require => Package[
+ 'spambayes',
+ 'python-pip'],
+ unless => "python -c 'import tracspamfilter'",
+ }
+
file {"/home/trac/environment/conf/trac.ini":
ensure => present,
content => template('trac/trac.ini.erb'),
@@ -146,7 +158,8 @@
Exec['install_NeverNotifyUpdater'],
Exec['install_MasterTickets'],
Exec['install_ThemeEngine'],
- Exec['install_Tractags']]
+ Exec['install_Tractags'],
+ Exec['install_TracSpamFilter']]
}
exec {"deploy":
« no previous file with comments | « no previous file | modules/trac/templates/trac.ini.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld