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: Stop using an unnecessary concat.

Alex Vandiver662c946635cb
diff --git a/puppet/zulip/manifests/supervisor.pp b/puppet/zulip/manifests/supervisor.pp
index a7f1bcd4d73..b480cbce179 100644
--- a/puppet/zulip/manifests/supervisor.pp
+++ b/puppet/zulip/manifests/supervisor.pp
@@ -81,24 +81,15 @@ class zulip::supervisor {
}
$file_descriptor_limit = zulipconf('application_server', 'service_file_descriptor_limit', 40000)
- concat { $zulip::common::supervisor_conf_file:
- ensure => 'present',
+ file { $zulip::common::supervisor_conf_file:
+ ensure => file,
require => Package[supervisor],
owner => 'root',
group => 'root',
mode => '0644',
+ content => template('zulip/supervisor/supervisord.conf.erb'),
notify => Exec['supervisor-restart'],
}
- concat::fragment { '00-supervisor-top':
- order => '01',
- target => $zulip::common::supervisor_conf_file,
- content => rstrip(template('zulip/supervisor/supervisord.conf.erb')),
- }
- concat::fragment { '99-supervisor-end':
- order => '99',
- target => $zulip::common::supervisor_conf_file,
- content => "\n",
- }
file { '/usr/local/bin/secret-env-wrapper':
ensure => file,