Skip to content

Commit

Permalink
Merge pull request #435 from Intrepidity/feature/rabbitmq
Browse files Browse the repository at this point in the history
Added RabbitMQ script
  • Loading branch information
fideloper committed Jan 19, 2015
2 parents 6c61418 + 76a87ac commit cbaa5e6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ nodejs_packages = [ # List any global NodeJS packages that you wa
#"yo",
]

# RabbitMQ settings
rabbitmq_user = "user"
rabbitmq_password = "password"

sphinxsearch_version = "rel22" # rel20, rel21, rel22, beta, daily, stable


Expand Down Expand Up @@ -275,6 +279,9 @@ Vagrant.configure("2") do |config|
# Install ØMQ
# config.vm.provision "shell", path: "#{github_url}/scripts/zeromq.sh"

# Install RabbitMQ
# config.vm.provision "shell", path: "#{github_url}/scripts/rabbitmq.sh", args: [rabbitmq_user, rabbitmq_password]

####
# Additional Languages
##########
Expand Down
13 changes: 13 additions & 0 deletions scripts/rabbitmq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

echo ">>> Installing RabbitMQ"

apt-get -y install erlang-nox
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
apt-key add rabbitmq-signing-key-public.asc
echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list
apt-get update
apt-get install rabbitmq-server

rabbitmqctl add_user $1 $2
rabbitmqctl set_permissions -p / $1 ".*" ".*" ".*"

0 comments on commit cbaa5e6

Please sign in to comment.