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

Side by Side Diff: modules/trac/manifests/init.pp

Issue 29337751: Issue 3676 - Install the TracXMLRPC and TracHTTPAuth plugins (Closed)
Patch Set: Created Feb. 26, 2016, 7:36 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/trac/templates/trac.ini.erb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class trac( 1 class trac(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $fcgi_config_dir = '/etc/nginx/trac.d', 5 $fcgi_config_dir = '/etc/nginx/trac.d',
6 $is_default = false) inherits private::trac { 6 $is_default = false) inherits private::trac {
7 7
8 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: 8 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
9 ensure => present 9 ensure => present
10 } 10 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 require => Package['python-pip'], 113 require => Package['python-pip'],
114 unless => "python -c 'import tractags'", 114 unless => "python -c 'import tractags'",
115 } 115 }
116 116
117 exec { 'install_PrivateTickets': 117 exec { 'install_PrivateTickets':
118 command => "pip install svn+https://trac-hacks.org/svn/privateticketsplugin/ tags/2.0.2/", 118 command => "pip install svn+https://trac-hacks.org/svn/privateticketsplugin/ tags/2.0.2/",
119 require => Package['subversion', 'python-pip'], 119 require => Package['subversion', 'python-pip'],
120 unless => "python -c 'import privatetickets'", 120 unless => "python -c 'import privatetickets'",
121 } 121 }
122 122
123 exec { 'install_TracXMLRPC':
124 command => 'pip install svn+https://trac-hacks.org/svn/xmlrpcplugin/trunk/',
125 require => Package['subversion', 'python-pip'],
126 unless => "python -c 'import tracrpc'",
127 }
128
129 exec { 'install_TracHTTPAuth':
130 command => 'pip install svn+https://trac-hacks.org/svn/httpauthplugin/trunk/ ',
131 require => Package['subversion', 'python-pip'],
132 unless => "python -c 'import httpauth'",
133 }
134
123 file { '/home/trac/trac.ini': 135 file { '/home/trac/trac.ini':
124 ensure => present, 136 ensure => present,
125 source => 'puppet:///modules/trac/trac.ini', 137 source => 'puppet:///modules/trac/trac.ini',
126 owner => 'trac', 138 owner => 'trac',
127 mode => 644, 139 mode => 644,
128 } 140 }
129 141
130 define instance ( 142 define instance (
131 $config = 'trac/trac.ini.erb', 143 $config = 'trac/trac.ini.erb',
132 $description = 'Issue Tracker', 144 $description = 'Issue Tracker',
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Exec['install_SensitiveTickets'], 215 Exec['install_SensitiveTickets'],
204 Exec['install_BlackMagicTicketTweaks'], 216 Exec['install_BlackMagicTicketTweaks'],
205 Exec['install_AccountManager'], 217 Exec['install_AccountManager'],
206 Exec['install_AutocompleteUsers'], 218 Exec['install_AutocompleteUsers'],
207 Exec['install_TicketTemplate'], 219 Exec['install_TicketTemplate'],
208 Exec['install_NeverNotifyUpdater'], 220 Exec['install_NeverNotifyUpdater'],
209 Exec['install_MasterTickets'], 221 Exec['install_MasterTickets'],
210 Exec['install_ThemeEngine'], 222 Exec['install_ThemeEngine'],
211 Exec['install_Tractags'], 223 Exec['install_Tractags'],
212 Exec['install_TracSpamFilter'], 224 Exec['install_TracSpamFilter'],
213 Exec['install_PrivateTickets']], 225 Exec['install_PrivateTickets'],
226 Exec['install_TracXMLRPC'],
227 Exec['install_TracHTTPAuth']],
214 } 228 }
215 229
216 exec {"deploy_$name": 230 exec {"deploy_$name":
217 command => "trac-admin /home/trac/$environment \ 231 command => "trac-admin /home/trac/$environment \
218 deploy /home/trac/htdocs-$name \ 232 deploy /home/trac/htdocs-$name \
219 && fromdos /home/trac/htdocs-$name/cgi-bin/trac.fcgi \ 233 && fromdos /home/trac/htdocs-$name/cgi-bin/trac.fcgi \
220 && chmod 755 /home/trac/htdocs-$name/cgi-bin/trac.fcgi", 234 && chmod 755 /home/trac/htdocs-$name/cgi-bin/trac.fcgi",
221 user => trac, 235 user => trac,
222 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', 236 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
223 require => [ 237 require => [
(...skipping 27 matching lines...) Expand all
251 # Daily restart required for log rotation of all instances at once 265 # Daily restart required for log rotation of all instances at once
252 cron {'restart-trac-daily': 266 cron {'restart-trac-daily':
253 command => 'service spawn-fcgi restart >/tmp/spawn-fcgi-restart.log', 267 command => 'service spawn-fcgi restart >/tmp/spawn-fcgi-restart.log',
254 environment => hiera('cron::environment', []), 268 environment => hiera('cron::environment', []),
255 hour => '1', 269 hour => '1',
256 minute => '0', 270 minute => '0',
257 user => 'root', 271 user => 'root',
258 } 272 }
259 } 273 }
260 274
OLDNEW
« 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