2013-10-29 23:53:04 +01:00
|
|
|
class zulip-internal::zmirror {
|
2013-11-01 20:28:03 +01:00
|
|
|
include zulip-internal::base
|
|
|
|
include zulip::supervisor
|
2013-02-07 22:20:10 +01:00
|
|
|
|
|
|
|
$zmirror_packages = [ "cython", "libzephyr-dev", "comerr-dev", "python-dev", "libzephyr4-krb5", "zephyr-clients",
|
2013-08-19 18:10:44 +02:00
|
|
|
"krb5-config", "krb5-user", "krb5-clients", "debathena-kerberos-config", "debathena-zephyr-config"]
|
2013-02-07 22:20:10 +01:00
|
|
|
package { $zmirror_packages: ensure => "installed" }
|
|
|
|
|
2013-08-19 18:10:44 +02:00
|
|
|
file { '/etc/apt/sources.list.d/debathena.list':
|
|
|
|
ensure => file,
|
|
|
|
mode => 644,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
2013-10-29 23:53:04 +01:00
|
|
|
source => 'puppet:///modules/zulip-internal/debathena.list',
|
2013-08-19 18:10:44 +02:00
|
|
|
}
|
2013-08-19 19:51:22 +02:00
|
|
|
file { "/etc/supervisor/conf.d/zmirror.conf":
|
|
|
|
require => Package[supervisor],
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/supervisor/conf.d/zmirror.conf",
|
2013-08-19 19:51:22 +02:00
|
|
|
notify => Service["supervisor"],
|
|
|
|
}
|
2013-08-19 18:10:44 +02:00
|
|
|
|
2013-08-19 19:54:08 +02:00
|
|
|
file { "/etc/cron.d/zephyr-mirror":
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/cron.d/zephyr-mirror",
|
2013-08-19 19:54:08 +02:00
|
|
|
}
|
|
|
|
|
2013-11-05 18:00:05 +01:00
|
|
|
file { "/etc/default/zephyr-clients.debathena":
|
2013-10-28 18:30:12 +01:00
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
|
|
|
mode => 644,
|
2013-10-29 23:53:04 +01:00
|
|
|
source => "puppet:///modules/zulip-internal/zephyr-clients.debathena",
|
2013-10-28 18:30:12 +01:00
|
|
|
}
|
|
|
|
|
2013-02-07 22:20:10 +01:00
|
|
|
# TODO: Do the rest of our setup, which includes at least:
|
|
|
|
# Building python-zephyr after cloning it from https://github.com/ebroder/python-zephyr
|
2013-10-04 19:19:57 +02:00
|
|
|
# Putting tabbott/extra's keytab on the system at /home/zulip/tabbott.extra.keytab
|
2013-02-07 22:20:10 +01:00
|
|
|
}
|