mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 14:38:46 +00:00
puppet: Ensure rabbitmq-server and epmd services are running.
[tabbott@mit.edu: Added a few comments]
This commit is contained in:
committed by
Tim Abbott
parent
f819c1e901
commit
956fd7c420
@@ -1,5 +1,6 @@
|
|||||||
class zulip::rabbit {
|
class zulip::rabbit {
|
||||||
$rabbit_packages = [# Needed to run rabbitmq
|
$rabbit_packages = [# Needed to run rabbitmq
|
||||||
|
"erlang-base",
|
||||||
"rabbitmq-server",
|
"rabbitmq-server",
|
||||||
]
|
]
|
||||||
package { $rabbit_packages: ensure => "installed" }
|
package { $rabbit_packages: ensure => "installed" }
|
||||||
@@ -39,5 +40,21 @@ class zulip::rabbit {
|
|||||||
source => "puppet:///modules/zulip/rabbitmq/rabbitmq.config",
|
source => "puppet:///modules/zulip/rabbitmq/rabbitmq.config",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# epmd doesn't have an init script. This won't leak epmd processes
|
||||||
|
# because epmd checks if one is already running and exits if so.
|
||||||
|
#
|
||||||
|
# TODO: Ideally we'd still check if it's already running to keep the
|
||||||
|
# puppet log for what is being changed clean
|
||||||
|
exec { "epmd":
|
||||||
|
command => "epmd -daemon",
|
||||||
|
require => Package[erlang-base],
|
||||||
|
path => "/usr/bin/:/bin/",
|
||||||
|
}
|
||||||
|
|
||||||
|
service { "rabbitmq-server":
|
||||||
|
ensure => running,
|
||||||
|
require => Exec["epmd"],
|
||||||
|
}
|
||||||
|
|
||||||
# TODO: Should also call exactly once "configure-rabbitmq"
|
# TODO: Should also call exactly once "configure-rabbitmq"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user