Index: modules/trac/manifests/init.pp |
=================================================================== |
--- a/modules/trac/manifests/init.pp |
+++ b/modules/trac/manifests/init.pp |
@@ -110,42 +110,56 @@ class trac( |
} |
exec { 'install_NeverNotifyUpdater': |
command => "pip install svn+http://trac-hacks.org/svn/nevernotifyupdaterplugin/1.0/", |
require => Package['subversion', 'python-pip'], |
unless => "python -c 'import nevernotifyupdaterplugin'", |
} |
+ exec { 'install_ThemeEngine': |
+ command => "pip install TracThemeEngine", |
+ require => Package['python-pip'], |
+ unless => "python -c 'import themeengine'", |
+ } |
+ |
file {"/home/trac/environment/conf/trac.ini": |
ensure => present, |
content => template('trac/trac.ini.erb'), |
owner => trac, |
require => Exec['trac_env'] |
} |
file {"/home/trac/htdocs/htdocs/common/adblockplus_logo.png": |
ensure => present, |
source => 'puppet:///modules/trac/adblockplus_logo.png', |
owner => trac, |
require => Exec['deploy'] |
} |
+ file {"/home/trac/environment/htdocs/theme.css": |
+ ensure => present, |
+ source => 'puppet:///modules/trac/theme.css', |
+ owner => trac, |
+ require => Exec['trac_env'] |
+ } |
+ |
exec {"update_env": |
command => "trac-admin /home/trac/environment upgrade", |
user => trac, |
require => [ |
File['/home/trac/environment/conf/trac.ini'], |
Exec['install_SensitiveTickets'], |
Exec['install_BlackMagicTicketTweaks'], |
Exec['install_AccountManager'], |
Exec['install_AutocompleteUsers'], |
Exec['install_TicketTemplate'], |
Exec['install_NeverNotifyUpdater'], |
- Exec['install_MasterTickets']] |
+ Exec['install_MasterTickets'], |
+ Exec['install_ThemeEngine']] |
} |
exec {"deploy": |
command => "trac-admin /home/trac/environment deploy /home/trac/htdocs && fromdos /home/trac/htdocs/cgi-bin/trac.fcgi && chmod 755 /home/trac/htdocs/cgi-bin/trac.fcgi", |
user => trac, |
require => [ |
Exec["update_env"], |
Package["tofrodos"]] |