Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Tidy old smokescreen binaries.

Alex Vandiver47e16a5d418e
diff --git a/puppet/zulip/manifests/profile/smokescreen.pp b/puppet/zulip/manifests/profile/smokescreen.pp
index b990c2695a4..b5236dc8322 100644
--- a/puppet/zulip/manifests/profile/smokescreen.pp
+++ b/puppet/zulip/manifests/profile/smokescreen.pp
@@ -24,13 +24,28 @@ class zulip::profile::smokescreen {
creates => $bin,
require => [File[$zulip::golang::bin], File[$dir]],
}
-
+ file { $bin:
+ ensure => file,
+ require => Exec['compile smokescreen'],
+ }
file { '/usr/local/bin/smokescreen':
ensure => 'link',
target => $bin,
- require => Exec['compile smokescreen'],
+ require => File[$bin],
notify => Service[supervisor],
}
+ unless $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease == '18.04' {
+ # Puppet 5.5.0 and below make this always-noisy, as they spout out
+ # a notify line about tidying the managed file above. Skip
+ # on Bionic, which has that old version; they'll get tidied upon
+ # upgrade to 20.04.
+ tidy { '/usr/local/bin/smokescreen-*':
+ path => '/usr/local/bin',
+ recurse => 1,
+ matches => 'smokescreen-*',
+ require => [File[$bin], File['/usr/local/bin/smokescreen']],
+ }
+ }
$listen_address = zulipconf('http_proxy', 'listen_address', '127.0.0.1')
file { "${zulip::common::supervisor_conf_dir}/smokescreen.conf":