2016-10-17 04:05:49 +02:00
|
|
|
class zulip_ops::zmirror_personals {
|
|
|
|
include zulip_ops::base
|
2013-11-01 20:28:03 +01:00
|
|
|
include zulip::supervisor
|
2013-08-23 23:38:39 +02:00
|
|
|
|
2013-11-08 21:16:02 +01:00
|
|
|
$zmirror_packages = [# Packages needed to run the mirror
|
|
|
|
"libzephyr4-krb5",
|
|
|
|
"zephyr-clients",
|
|
|
|
"krb5-config",
|
|
|
|
"krb5-user",
|
|
|
|
"debathena-kerberos-config",
|
|
|
|
"debathena-zephyr-config",
|
|
|
|
# Packages needed to build pyzephyr
|
|
|
|
"libzephyr-dev",
|
|
|
|
"comerr-dev",
|
2017-08-04 02:00:13 +02:00
|
|
|
"python3-dev",
|
2013-11-08 21:16:02 +01:00
|
|
|
"python-dev",
|
2017-08-04 02:00:13 +02:00
|
|
|
"cython3",
|
2013-11-08 21:16:02 +01:00
|
|
|
"cython",
|
|
|
|
]
|
2013-08-23 23:38:39 +02:00
|
|
|
package { $zmirror_packages: ensure => "installed" }
|
|
|
|
|
2014-04-09 00:39:36 +02:00
|
|
|
apt::source {'debathena':
|
|
|
|
location => 'http://debathena.mit.edu/apt',
|
2016-08-15 01:35:01 +02:00
|
|
|
release => 'xenial',
|
2014-04-09 00:39:36 +02:00
|
|
|
repos => 'debathena debathena-config',
|
|
|
|
key => 'D1CD49BDD30B677273A75C66E4EE62700D8A9E8F',
|
|
|
|
key_source => 'https://debathena.mit.edu/apt/debathena-archive.asc',
|
|
|
|
include_src => true,
|
2013-08-23 23:38:39 +02:00
|
|
|
}
|
2013-10-04 19:19:57 +02:00
|
|
|
file { ['/home/zulip/api-keys', '/home/zulip/zephyr_sessions', '/home/zulip/ccache',
|
|
|
|
'/home/zulip/mirror_status']:
|
2013-08-23 23:38:39 +02:00
|
|
|
ensure => directory,
|
2018-04-23 08:30:21 +02:00
|
|
|
mode => '0644',
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-08-23 23:38:39 +02:00
|
|
|
}
|
|
|
|
|
2013-08-26 21:43:29 +02:00
|
|
|
file { "/etc/cron.d/test_zephyr_personal_mirrors":
|
|
|
|
ensure => file,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
2018-04-23 08:30:21 +02:00
|
|
|
mode => '0644',
|
2016-10-17 04:05:49 +02:00
|
|
|
source => "puppet:///modules/zulip_ops/cron.d/test_zephyr_personal_mirrors",
|
2013-08-26 21:43:29 +02:00
|
|
|
}
|
|
|
|
|
2016-04-04 04:23:57 +02:00
|
|
|
file { "/usr/lib/nagios/plugins/zulip_zephyr_mirror":
|
|
|
|
require => Package[nagios-plugins-basic],
|
|
|
|
recurse => true,
|
|
|
|
purge => true,
|
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
2018-04-23 08:30:21 +02:00
|
|
|
mode => '0755',
|
2016-10-17 04:05:49 +02:00
|
|
|
source => "puppet:///modules/zulip_ops/nagios_plugins/zulip_zephyr_mirror",
|
2016-04-04 04:23:57 +02:00
|
|
|
}
|
|
|
|
|
2013-08-23 23:38:39 +02:00
|
|
|
# TODO: Do the rest of our setup, which includes at least:
|
|
|
|
# Building patched libzephyr4-krb5 from davidben's roost branch and installing that
|
|
|
|
# (to add ZLoadSession/ZDumpSession).
|
|
|
|
# Building python-zephyr after cloning it from https://github.com/ebroder/python-zephyr
|
|
|
|
# (patched with tabbott's branch to add dump_session and load_session using the above)
|
|
|
|
}
|