From 0a44ba2a28fa98d95c30c3c1d409127e99a9fc8d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 25 Oct 2013 17:00:05 -0400 Subject: [PATCH] Move servers/configure-rabbitmq to scripts/setup/. (imported from commit 2b4d5ccb88675447ae744fb985246211deef7486) --- {servers => scripts/setup}/configure-rabbitmq | 2 +- servers/puppet/modules/zulip/manifests/rabbit.pp | 4 ++-- zproject/local_settings.py | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) rename {servers => scripts/setup}/configure-rabbitmq (71%) diff --git a/servers/configure-rabbitmq b/scripts/setup/configure-rabbitmq similarity index 71% rename from servers/configure-rabbitmq rename to scripts/setup/configure-rabbitmq index fa71eba98a..42d03025cd 100755 --- a/servers/configure-rabbitmq +++ b/scripts/setup/configure-rabbitmq @@ -4,6 +4,6 @@ # with a real password rabbitmqctl delete_user guest -rabbitmqctl add_user zulip $($(dirname $0)/../tools/get-django-setting RABBITMQ_PASSWORD) +rabbitmqctl add_user zulip $($(dirname $0)/../../tools/get-django-setting RABBITMQ_PASSWORD) rabbitmqctl set_user_tags zulip administrator rabbitmqctl set_permissions -p / zulip '.*' '.*' '.*' diff --git a/servers/puppet/modules/zulip/manifests/rabbit.pp b/servers/puppet/modules/zulip/manifests/rabbit.pp index 7de7691d67..b60bfb6ba3 100644 --- a/servers/puppet/modules/zulip/manifests/rabbit.pp +++ b/servers/puppet/modules/zulip/manifests/rabbit.pp @@ -26,7 +26,7 @@ class zulip::rabbit { group => "root", mode => 644, source => "puppet:///modules/zulip/rabbitmq/rabbitmq-server", - } + } file { "/etc/rabbitmq/rabbitmq.config": require => Package[rabbitmq-server], @@ -37,5 +37,5 @@ class zulip::rabbit { source => "puppet:///modules/zulip/rabbitmq/rabbitmq.config", } - # TODO: Should also call exactly once "servers/configure-rabbitmq" + # TODO: Should also call exactly once "configure-rabbitmq" } diff --git a/zproject/local_settings.py b/zproject/local_settings.py index c2e209b94b..6419ae9987 100644 --- a/zproject/local_settings.py +++ b/zproject/local_settings.py @@ -23,7 +23,6 @@ INITIAL_PASSWORD_SALT = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # FIXME: store this password more securely SHARED_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -# This password also appears in servers/configure-rabbitmq RABBITMQ_PASSWORD = 'xxxxxxxxxxxxxxxx' MAILCHIMP_API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us4'