puppet: Only install ksplice uptrack if there is an access key.

This commit is contained in:
Alex Vandiver 2021-03-09 14:50:53 -08:00 committed by Tim Abbott
parent 86c883ceb0
commit a5b29398fc
1 changed files with 25 additions and 23 deletions

View File

@ -1,11 +1,12 @@
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',
}
$ksplice_access_key = zulipsecret('secrets', 'ksplice_access_key', '')
file { '/etc/uptrack/uptrack.conf':
ensure => file,
owner => 'root',
@ -24,4 +25,5 @@ class zulip_ops::ksplice_uptrack {
File['/etc/uptrack/uptrack.conf'],
],
}
}
}