LEFT | RIGHT |
1 class trac( | 1 class trac( |
2 $domain, | 2 $domain, |
3 $is_default = false) inherits private::trac { | 3 $is_default = false) inherits private::trac { |
4 package {['python-mysqldb','python-pip','subversion', 'tofrodos']: | 4 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: |
5 ensure => present | 5 ensure => present |
6 } | 6 } |
7 | 7 |
8 include nginx, spawn-fcgi | 8 include nginx, spawn-fcgi |
9 | 9 |
10 nginx::hostconfig {$domain: | 10 nginx::hostconfig {$domain: |
11 content => template('trac/site.erb'), | 11 content => template('trac/site.erb'), |
12 enabled => true | 12 enabled => true |
13 } | 13 } |
14 | 14 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 require => Package['subversion', 'python-pip'], | 76 require => Package['subversion', 'python-pip'], |
77 unless => "python -c 'import tickettemplate'", | 77 unless => "python -c 'import tickettemplate'", |
78 } | 78 } |
79 | 79 |
80 exec { 'install_AutocompleteUsers': | 80 exec { 'install_AutocompleteUsers': |
81 command => "pip install svn+http://trac-hacks.org/svn/autocompleteusersplugi
n/trunk/", | 81 command => "pip install svn+http://trac-hacks.org/svn/autocompleteusersplugi
n/trunk/", |
82 require => Package['subversion', 'python-pip'], | 82 require => Package['subversion', 'python-pip'], |
83 unless => "python -c 'import autocompleteusers'", | 83 unless => "python -c 'import autocompleteusers'", |
84 } | 84 } |
85 | 85 |
86 package { "graphviz": | |
87 ensure => "installed" | |
88 } | |
89 | |
90 exec { 'install_MasterTickets': | 86 exec { 'install_MasterTickets': |
91 command => "pip install svn+http://trac-hacks.org/svn/masterticketsplugin/tr
unk/", | 87 command => "pip install svn+http://trac-hacks.org/svn/masterticketsplugin/tr
unk/", |
92 require => Package['subversion', 'python-pip', 'graphviz'], | 88 require => Package['subversion', 'python-pip', 'graphviz'], |
93 unless => "python -c 'import mastertickets'", | 89 unless => "python -c 'import mastertickets'", |
94 } | 90 } |
95 | 91 |
96 file {"/home/trac/environment/conf/trac.ini": | 92 file {"/home/trac/environment/conf/trac.ini": |
97 ensure => present, | 93 ensure => present, |
98 content => template('trac/trac.ini.erb'), | 94 content => template('trac/trac.ini.erb'), |
99 owner => trac, | 95 owner => trac, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 require => Exec['deploy'], | 134 require => Exec['deploy'], |
139 } | 135 } |
140 | 136 |
141 file {"/home/trac/permissions.csv": | 137 file {"/home/trac/permissions.csv": |
142 ensure => present, | 138 ensure => present, |
143 owner => trac, | 139 owner => trac, |
144 source => 'puppet:///modules/trac/permissions.csv' | 140 source => 'puppet:///modules/trac/permissions.csv' |
145 } | 141 } |
146 | 142 |
147 } | 143 } |
LEFT | RIGHT |