2013-02-07 22:20:10 +01:00
|
|
|
class humbug::trac {
|
|
|
|
class { 'humbug::base': }
|
|
|
|
class { 'humbug::apache': }
|
2013-07-25 23:38:40 +02:00
|
|
|
class { 'humbug::mediawiki': }
|
2013-02-07 22:20:10 +01:00
|
|
|
|
|
|
|
$trac_packages = [ "trac", ]
|
2013-02-08 19:27:41 +01:00
|
|
|
package { $trac_packages: ensure => "installed" }
|
2013-02-07 22:20:10 +01:00
|
|
|
|
|
|
|
apache2site { 'trac':
|
|
|
|
require => [File['/etc/apache2/sites-available/'],
|
|
|
|
Apache2mod['headers'], Apache2mod['ssl'],
|
|
|
|
],
|
|
|
|
ensure => present,
|
|
|
|
}
|
2013-05-31 18:34:55 +02:00
|
|
|
file { "/home/humbug/trac/conf/trac.ini":
|
|
|
|
owner => "humbug",
|
|
|
|
group => "humbug",
|
|
|
|
source => "puppet:///modules/humbug/trac.ini",
|
|
|
|
require => User['humbug'],
|
|
|
|
}
|
|
|
|
file { '/home/humbug/trac/plugins/humbug_trac.py':
|
|
|
|
ensure => 'link',
|
|
|
|
target => '/home/humbug/humbug/api/integrations/trac/humbug_trac.py',
|
|
|
|
}
|
|
|
|
file { '/home/humbug/trac/plugins/humbug_trac_config.py':
|
|
|
|
ensure => 'link',
|
|
|
|
target => '/home/humbug/humbug/bots/humbug_trac_config.py',
|
|
|
|
}
|
|
|
|
# TODO: Add downloading and installing trac at /home/humbug/trac
|
2013-02-07 22:20:10 +01:00
|
|
|
}
|