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

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

Issue 29362580: Issue 4641 - Append performance fix to trac cgi file (Closed)
Patch Set: Forgot the py file Created Nov. 18, 2016, 9:32 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 | « modules/trac/files/trac_performance_fix.py ('k') | no next file » | 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
@@ -9,7 +9,9 @@
ensure => present
}
- include nginx, spawn-fcgi
+ include stdlib,
+ nginx,
+ spawn-fcgi
file {$fcgi_config_dir:
ensure => directory,
@@ -146,6 +148,15 @@
mode => 644,
}
+ file {"trac_performance_fix_py":
+ ensure => present,
+ path => '/usr/local/lib/python2.7/dist-packages/trac_performance_fix.py',
+ source => 'puppet:///modules/trac/trac_performance_fix.py',
+ owner => 'root',
+ mode => 644,
+ }
+
+
define instance (
$config = 'trac/trac.ini.erb',
$description = 'Issue Tracker',
@@ -246,6 +257,13 @@
Package["tofrodos"]],
}
+ file_line { "patch $name trac.fcgi":
+ path => "/home/trac/htdocs-$name/cgi-bin/trac.fcgi",
+ match => '^# Author.*$',
+ line => "# Author\nimport trac_performance_fix",
+ require => Exec["deploy_$name"],
+ }
+
file {"/home/trac/htdocs-$name/htdocs/common/logo.png":
ensure => present,
source => $logo,
« no previous file with comments | « modules/trac/files/trac_performance_fix.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld