zulip/puppet/zulip_ops/manifests/zmirror.pp

66 lines
1.8 KiB
ObjectPascal
Raw Normal View History

class zulip_ops::zmirror {
include zulip_ops::base
include zulip_ops::apt_repository_debathena
include zulip::supervisor
$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',
'python3-dev',
'python-dev',
'cython3',
'cython',
]
package { $zmirror_packages:
ensure => 'installed',
require => Exec['setup_apt_repo_debathena'],
}
file { '/etc/supervisor/conf.d/zmirror.conf':
ensure => file,
require => Package[supervisor],
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/zulip_ops/supervisor/conf.d/zmirror.conf',
notify => Service['supervisor'],
}
file { '/etc/cron.d/zephyr-mirror':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/zulip_ops/cron.d/zephyr-mirror',
}
file { '/etc/default/zephyr-clients.debathena':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/zulip_ops/zephyr-clients.debathena',
}
file { '/usr/lib/nagios/plugins/zulip_zephyr_mirror':
require => Package[$zulip::common::nagios_plugins],
recurse => true,
purge => true,
owner => 'root',
group => 'root',
mode => '0755',
source => 'puppet:///modules/zulip_ops/nagios_plugins/zulip_zephyr_mirror',
}
# TODO: Do the rest of our setup, which includes at least:
# Building python-zephyr after cloning it from https://github.com/ebroder/python-zephyr
# Putting tabbott/extra's keytab on the system at /home/zulip/tabbott.extra.keytab
}