2021-02-25 23:11:27 +01:00
|
|
|
class zulip_ops::ksplice_uptrack {
|
2021-02-26 23:49:15 +01:00
|
|
|
$ksplice_access_key = zulipsecret('secrets', 'ksplice_access_key', '')
|
2021-03-09 23:50:53 +01:00
|
|
|
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-ksplice"
|
|
|
|
exec{ 'setup-apt-repo-ksplice':
|
|
|
|
command => $setup_apt_repo_file,
|
|
|
|
unless => "${setup_apt_repo_file} --verify",
|
|
|
|
}
|
|
|
|
Package { 'uptrack':
|
|
|
|
require => [
|
|
|
|
Exec['setup-apt-repo-ksplice'],
|
|
|
|
File['/etc/uptrack/uptrack.conf'],
|
|
|
|
],
|
|
|
|
}
|
2021-02-25 23:11:27 +01:00
|
|
|
}
|
|
|
|
}
|