mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 14:38:46 +00:00
puppet: Add CentOS version of supervisord.conf path.
This commit is contained in:
@@ -3,6 +3,12 @@ class zulip::supervisor {
|
|||||||
'supervisor',
|
'supervisor',
|
||||||
]
|
]
|
||||||
package { $supervisor_packages: ensure => 'installed' }
|
package { $supervisor_packages: ensure => 'installed' }
|
||||||
|
|
||||||
|
$supervisord_conf = $::osfamily ? {
|
||||||
|
'debian' => '/etc/supervisor/supervisord.conf',
|
||||||
|
'redhat' => '/etc/supervisord.conf',
|
||||||
|
}
|
||||||
|
|
||||||
# In the dockervoyager environment, we don't want/need supervisor to be started/stopped
|
# In the dockervoyager environment, we don't want/need supervisor to be started/stopped
|
||||||
# /bin/true is used as a decoy command, to maintain compatibility with other
|
# /bin/true is used as a decoy command, to maintain compatibility with other
|
||||||
# code using the supervisor service.
|
# code using the supervisor service.
|
||||||
@@ -50,7 +56,7 @@ class zulip::supervisor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/supervisor/supervisord.conf':
|
file { $supervisord_conf:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
require => Package[supervisor],
|
require => Package[supervisor],
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
|||||||
Reference in New Issue
Block a user