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: Run configure-rabbitmq on nodename change.

Alex Vandiver3bfcfeac245c
diff --git a/puppet/zulip/manifests/profile/rabbitmq.pp b/puppet/zulip/manifests/profile/rabbitmq.pp
index 8f740e3ed7f..80131e61168 100644
--- a/puppet/zulip/manifests/profile/rabbitmq.pp
+++ b/puppet/zulip/manifests/profile/rabbitmq.pp
@@ -38,6 +38,7 @@ class zulip::profile::rabbitmq {
ensure => file,
require => File['/etc/rabbitmq'],
before => [Package[rabbitmq-server], Service[rabbitmq-server]],
+ notify => Exec['configure-rabbitmq'],
owner => 'root',
group => 'root',
mode => '0644',
@@ -62,5 +63,9 @@ class zulip::profile::rabbitmq {
File['/etc/default/rabbitmq-server']],
}
- # TODO: Should also call exactly once "configure-rabbitmq"
+ exec { 'configure-rabbitmq':
+ command => "${::zulip_scripts_path}/setup/configure-rabbitmq",
+ refreshonly => true,
+ require => Service['rabbitmq-server'],
+ }
}
diff --git a/scripts/lib/install b/scripts/lib/install
index e648b9ae91b..06715b9cc82 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -520,7 +520,6 @@ For more information, see:
EOF
exit 1
fi
- "$ZULIP_PATH"/scripts/setup/configure-rabbitmq
fi
if has_class "zulip::postgresql_common" && [ -z "$NO_INIT_DB" ]; then