LEFT | RIGHT |
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 exec { 'install_Tractags': | 111 exec { 'install_Tractags': |
112 command => "pip install svn+http://trac-hacks.org/svn/tagsplugin/tags/0.7/", | 112 command => "pip install svn+http://trac-hacks.org/svn/tagsplugin/tags/0.7/", |
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+http://trac-hacks.org/svn/privateticketsplugin/t
ags/2.0.2/", | 118 command => "pip install svn+http://trac-hacks.org/svn/privateticketsplugin/t
ags/2.0.2/", |
119 require => Package['subversion', 'python-pip'], | 119 require => Package['subversion', 'python-pip'], |
120 unless => "python -c 'import privateticketsplugin'", | 120 unless => "python -c 'import privatetickets'", |
121 } | 121 } |
122 | 122 |
123 file { '/home/trac/trac.ini': | 123 file { '/home/trac/trac.ini': |
124 ensure => present, | 124 ensure => present, |
125 source => 'puppet:///modules/trac/trac.ini', | 125 source => 'puppet:///modules/trac/trac.ini', |
126 owner => 'trac', | 126 owner => 'trac', |
127 mode => 644, | 127 mode => 644, |
128 } | 128 } |
129 | 129 |
130 define instance ( | 130 define instance ( |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 fcgi_app => "/home/trac/htdocs-$name/cgi-bin/trac.fcgi", | 237 fcgi_app => "/home/trac/htdocs-$name/cgi-bin/trac.fcgi", |
238 socket => "/tmp/${name}-fastcgi.sock", | 238 socket => "/tmp/${name}-fastcgi.sock", |
239 mode => "0666", | 239 mode => "0666", |
240 user => trac, | 240 user => trac, |
241 children => 1, | 241 children => 1, |
242 require => Exec["deploy_$name"], | 242 require => Exec["deploy_$name"], |
243 } | 243 } |
244 } | 244 } |
245 } | 245 } |
246 | 246 |
LEFT | RIGHT |