2013-11-05 21:21:00 +01:00
|
|
|
class zulip_internal::trac {
|
|
|
|
include zulip_internal::base
|
|
|
|
include zulip_internal::apache
|
|
|
|
include zulip_internal::mediawiki
|
2013-02-07 22:20:10 +01:00
|
|
|
|
2013-11-08 21:17:14 +01:00
|
|
|
$trac_packages = [# Packages needed to run trac
|
|
|
|
"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-10-04 19:19:57 +02:00
|
|
|
file { "/home/zulip/trac/conf/trac.ini":
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-07-26 21:47:44 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/trac.ini",
|
2013-10-04 20:23:48 +02:00
|
|
|
require => User['zulip'],
|
2013-05-31 18:34:55 +02:00
|
|
|
}
|
2013-10-04 19:53:32 +02:00
|
|
|
file { "/home/zulip/trac/cgi-bin/":
|
|
|
|
recurse => true,
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-10-04 19:53:32 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/trac/cgi-bin/",
|
2013-10-04 19:53:32 +02:00
|
|
|
}
|
2013-10-04 19:19:57 +02:00
|
|
|
file { '/home/zulip/trac/plugins/zulip_trac.py':
|
2013-05-31 18:34:55 +02:00
|
|
|
ensure => 'link',
|
2013-10-04 19:19:57 +02:00
|
|
|
target => '/home/zulip/zulip/api/integrations/trac/zulip_trac.py',
|
2013-05-31 18:34:55 +02:00
|
|
|
}
|
2013-10-04 19:19:57 +02:00
|
|
|
file { '/home/zulip/trac/plugins/zulip_trac_config.py':
|
2013-05-31 18:34:55 +02:00
|
|
|
ensure => 'link',
|
2013-10-04 19:19:57 +02:00
|
|
|
target => '/home/zulip/zulip/bots/zulip_trac_config.py',
|
2013-05-31 18:34:55 +02:00
|
|
|
}
|
2013-10-04 19:19:57 +02:00
|
|
|
# TODO: Add downloading and installing trac at /home/zulip/trac
|
2013-07-26 23:00:23 +02:00
|
|
|
|
|
|
|
file { '/etc/sysctl.d/40-postgresql.conf':
|
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => 'puppet:///modules/zulip_internal/postgresql/40-postgresql.conf.trac',
|
2013-07-26 23:00:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
file { "/etc/postgresql/9.1/main/postgresql.conf":
|
|
|
|
require => Package["postgresql-9.1"],
|
|
|
|
ensure => file,
|
|
|
|
owner => "postgres",
|
|
|
|
group => "postgres",
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/postgresql/postgresql.conf.trac",
|
2013-07-26 23:00:23 +02:00
|
|
|
}
|
2013-02-07 22:20:10 +01:00
|
|
|
}
|