mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
This moves the `.asc` files into subdirectories, and writes out the
according `.list` files into them. It moves from templates to
written-out `.list` files for clarity and ease of
implementation (Debian and Ubuntu need different templates for
`zulip`), and as a way of making explicit which releases are supported
for each list. For the special-case of the PGroonga signing key, we
source an additional file within the directory.
This simplifies the process for adding another class of `.list` file.
(cherry picked from commit f3eea72c2a)
32 lines
959 B
Puppet
32 lines
959 B
Puppet
class zulip_ops::ksplice_uptrack {
|
|
$ksplice_access_key = zulipsecret('secrets', 'ksplice_access_key', '')
|
|
if $ksplice_access_key != '' {
|
|
file { '/etc/uptrack':
|
|
ensure => 'directory',
|
|
owner => 'root',
|
|
group => 'adm',
|
|
mode => '0750',
|
|
}
|
|
file { '/etc/uptrack/uptrack.conf':
|
|
ensure => file,
|
|
owner => 'root',
|
|
group => 'adm',
|
|
mode => '0640',
|
|
content => template('zulip_ops/uptrack/uptrack.conf.erb'),
|
|
}
|
|
$setup_apt_repo_file = "${::zulip_scripts_path}/lib/setup-apt-repo"
|
|
exec{ 'setup-apt-repo-ksplice':
|
|
command => "${setup_apt_repo_file} --list ksplice",
|
|
unless => "${setup_apt_repo_file} --list ksplice --verify",
|
|
}
|
|
Package { 'uptrack':
|
|
require => [
|
|
Exec['setup-apt-repo-ksplice'],
|
|
File['/etc/uptrack/uptrack.conf'],
|
|
],
|
|
}
|
|
} else {
|
|
warning('No ksplice uptrack key is configured; ksplice is not installed!')
|
|
}
|
|
}
|