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

Delta Between Two Patch Sets: modules/trac/manifests/init.pp

Issue 5748484741267456: Issue #615 Added anti-spam automation to Trac at issues1. (Closed)
Left Patch Set: Created June 3, 2014, 4:27 p.m.
Right Patch Set: Removed trust from authenticated users. Created June 4, 2014, 9:42 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | modules/trac/templates/trac.ini.erb » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 class trac( 1 class trac(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $is_default = false) inherits private::trac { 5 $is_default = false) inherits private::trac {
6 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: 6 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
7 ensure => present 7 ensure => present
8 } 8 }
9 9
10 include nginx, spawn-fcgi 10 include nginx, spawn-fcgi
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 require => Package['subversion', 'python-pip'], 99 require => Package['subversion', 'python-pip'],
100 unless => "python -c 'import nevernotifyupdaterplugin'", 100 unless => "python -c 'import nevernotifyupdaterplugin'",
101 } 101 }
102 102
103 exec { 'install_ThemeEngine': 103 exec { 'install_ThemeEngine':
104 command => "pip install TracThemeEngine", 104 command => "pip install TracThemeEngine",
105 require => Package['python-pip'], 105 require => Package['python-pip'],
106 unless => "python -c 'import themeengine'", 106 unless => "python -c 'import themeengine'",
107 } 107 }
108 108
109 package { 'spambayes':
110 ensure => "installed"
111 }
112
113 exec { 'install_TracSpamFilter':
114 command => "pip install svn+http://svn.edgewall.com/repos/trac/plugins/1.0/s pam-filter",
115 require => Package[
116 'spambayes',
117 'python-pip'],
118 unless => "python -c 'import tracspamfilter'",
119 }
120
109 file {"/home/trac/environment/conf/trac.ini": 121 file {"/home/trac/environment/conf/trac.ini":
110 ensure => present, 122 ensure => present,
111 content => template('trac/trac.ini.erb'), 123 content => template('trac/trac.ini.erb'),
112 owner => trac, 124 owner => trac,
113 require => Exec['trac_env'] 125 require => Exec['trac_env']
114 } 126 }
115 127
116 exec { 'install_Tractags': 128 exec { 'install_Tractags':
117 command => "pip install svn+http://trac-hacks.org/svn/tagsplugin/tags/0.7/", 129 command => "pip install svn+http://trac-hacks.org/svn/tagsplugin/tags/0.7/",
118 require => Package['python-pip'], 130 require => Package['python-pip'],
(...skipping 20 matching lines...) Expand all
139 require => [ 151 require => [
140 File['/home/trac/environment/conf/trac.ini'], 152 File['/home/trac/environment/conf/trac.ini'],
141 Exec['install_SensitiveTickets'], 153 Exec['install_SensitiveTickets'],
142 Exec['install_BlackMagicTicketTweaks'], 154 Exec['install_BlackMagicTicketTweaks'],
143 Exec['install_AccountManager'], 155 Exec['install_AccountManager'],
144 Exec['install_AutocompleteUsers'], 156 Exec['install_AutocompleteUsers'],
145 Exec['install_TicketTemplate'], 157 Exec['install_TicketTemplate'],
146 Exec['install_NeverNotifyUpdater'], 158 Exec['install_NeverNotifyUpdater'],
147 Exec['install_MasterTickets'], 159 Exec['install_MasterTickets'],
148 Exec['install_ThemeEngine'], 160 Exec['install_ThemeEngine'],
149 Exec['install_Tractags']] 161 Exec['install_Tractags'],
162 Exec['install_TracSpamFilter']]
150 } 163 }
151 164
152 exec {"deploy": 165 exec {"deploy":
153 command => "trac-admin /home/trac/environment deploy /home/trac/htdocs && fr omdos /home/trac/htdocs/cgi-bin/trac.fcgi && chmod 755 /home/trac/htdocs/cgi-bin /trac.fcgi", 166 command => "trac-admin /home/trac/environment deploy /home/trac/htdocs && fr omdos /home/trac/htdocs/cgi-bin/trac.fcgi && chmod 755 /home/trac/htdocs/cgi-bin /trac.fcgi",
154 user => trac, 167 user => trac,
155 require => [ 168 require => [
156 Exec["update_env"], 169 Exec["update_env"],
157 Package["tofrodos"]] 170 Package["tofrodos"]]
158 } 171 }
159 172
160 spawn-fcgi::pool {"tracd": 173 spawn-fcgi::pool {"tracd":
161 ensure => present, 174 ensure => present,
162 fcgi_app => "/home/trac/htdocs/cgi-bin/trac.fcgi", 175 fcgi_app => "/home/trac/htdocs/cgi-bin/trac.fcgi",
163 socket => "/tmp/trac-fastcgi.sock", 176 socket => "/tmp/trac-fastcgi.sock",
164 mode => "0666", 177 mode => "0666",
165 user => trac, 178 user => trac,
166 children => 1, 179 children => 1,
167 require => Exec['deploy'], 180 require => Exec['deploy'],
168 } 181 }
169 182
170 file {"/home/trac/permissions.csv": 183 file {"/home/trac/permissions.csv":
171 ensure => present, 184 ensure => present,
172 owner => trac, 185 owner => trac,
173 source => 'puppet:///modules/trac/permissions.csv' 186 source => 'puppet:///modules/trac/permissions.csv'
174 } 187 }
175 188
176 } 189 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld