Skip to content

Commit

Permalink
Fixes #49: Switch to MongoDB 3.2 packages (#51)
Browse files Browse the repository at this point in the history
Switch to MongoDB 3.2 packages
  • Loading branch information
armab authored Aug 26, 2016
2 parents 3b115b4 + 3f468b1 commit 6539855
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ dependencies:
- sudo apt-get install python-pip python-dev
- sudo pip install --upgrade setuptools
- sudo pip install ansible
# fix for Python SNI (Server Name Indication) verification
# https://github.com/ansible/ansible/issues/12161#issuecomment-136949743
- sudo pip install urllib3 pyopenssl ndg-httpsclient pyasn1
- ansible --version

test:
Expand Down
25 changes: 20 additions & 5 deletions roles/mongodb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
- name: Install dependencies
sudo: true
---
- name: Add mongodb key
sudo: yes
apt_key:
url: https://www.mongodb.org/static/pgp/server-3.2.asc
id: 42F3E95A2C4F08279C4960ADD68FA50FEA312927
state: present
tags: [databases, mongodb]

- name: Add mongodb repository
sudo: yes
apt_repository:
repo: 'deb http://repo.mongodb.org/apt/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }}/mongodb-org/3.2 multiverse'
state: present
tags: [databases, mongodb]

- name: Install mongodb
sudo: yes
apt:
name: "{{ item }}"
name: mongodb-org
update_cache: yes
state: present
with_items:
- mongodb-server
tags: [databases, mongodb]

0 comments on commit 6539855

Please sign in to comment.