Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Tidy old golang directories.
Alex Vandiver3c8d7e2598e7
diff --git a/puppet/zulip/manifests/golang.pp b/puppet/zulip/manifests/golang.ppindex 62a2001db32..5de698a781f 100644--- a/puppet/zulip/manifests/golang.pp+++ b/puppet/zulip/manifests/golang.pp@@ -18,4 +18,23 @@ class zulip::golang {ensure => file,require => Zulip::Sha256_tarball_to['golang'],}++ file { $dir:+ ensure => directory,+ require => Zulip::Sha256_tarball_to['golang'],+ }++ 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 directory above. Skip+ # on Bionic, which has that old version; they'll get tidied upon+ # upgrade to 20.04.+ tidy { '/srv/zulip-golang-*':+ path => '/srv/',+ recurse => 1,+ rmdirs => true,+ matches => 'zulip-golang-*',+ require => File[$dir],+ }+ }}