Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
a5967a58
Commit
a5967a58
authored
Apr 07, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installing rabbit from a deb file
parent
a711d431
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
playbooks/roles/rabbitmq/defaults/main.yml
+6
-0
playbooks/roles/rabbitmq/tasks/main.yml
+10
-3
No files found.
playbooks/roles/rabbitmq/defaults/main.yml
View file @
a5967a58
...
...
@@ -28,9 +28,15 @@ rabbitmq_refresh: false
rabbitmq_apt_key
:
"
http://www.rabbitmq.com/rabbitmq-signing-key-public.asc"
rabbitmq_repository
:
"
deb
http://www.rabbitmq.com/debian/
testing
main"
# We mirror the deb package for rabbitmq-server because
# nodes need to be running the same version
rabbitmq_pkg_url
:
"
http://files.edx.org/rabbitmq_packages/rabbitmq-server_3.2.3-1_all.deb"
rabbitmq_pkg
:
"
rabbitmq-server"
rabbitmq_debian_pkgs
:
-
python-software-properties
# for installing the deb package with
# dependencies
-
gdebi
rabbitmq_config_dir
:
"
/etc/rabbitmq"
rabbitmq_cookie_dir
:
"
/var/lib/rabbitmq"
...
...
playbooks/roles/rabbitmq/tasks/main.yml
View file @
a5967a58
...
...
@@ -10,10 +10,17 @@
apt
:
pkg={{",".join(rabbitmq_debian_pkgs)}} state=present
-
name
:
add rabbit repository
apt_repository
:
repo="{{rabbitmq_repository}}" state=present
apt_repository
:
repo="{{rabbitmq_repository}}" state=present
update_cache=yes
-
name
:
install rabbitmq
apt
:
pkg={{rabbitmq_pkg}} state=present update_cache=yes
-
name
:
fetch the rabbitmq server deb
get_url
:
>
url=http://{{ rabbitmq_pkg_url }}
dest=/var/tmp/{{ rabbitmq_pkg_url|basename }}
-
name
:
install rabbit package using gdebi
shell
:
>
gdebi --n {{ rabbitmq_pkg_url|basename }}
chdir=/var/tmp
-
name
:
stop rabbit cluster
service
:
name=rabbitmq-server state=stopped
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment