Skip to content

Commit 6539855

Browse files
authored
Fixes #49: Switch to MongoDB 3.2 packages (#51)
Switch to MongoDB 3.2 packages
2 parents 3b115b4 + 3f468b1 commit 6539855

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

circle.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ dependencies:
1616
- sudo apt-get install python-pip python-dev
1717
- sudo pip install --upgrade setuptools
1818
- sudo pip install ansible
19+
# fix for Python SNI (Server Name Indication) verification
20+
# https://github.com/ansible/ansible/issues/12161#issuecomment-136949743
21+
- sudo pip install urllib3 pyopenssl ndg-httpsclient pyasn1
1922
- ansible --version
2023

2124
test:

roles/mongodb/tasks/main.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
- name: Install dependencies
2-
sudo: true
1+
---
2+
- name: Add mongodb key
3+
sudo: yes
4+
apt_key:
5+
url: https://www.mongodb.org/static/pgp/server-3.2.asc
6+
id: 42F3E95A2C4F08279C4960ADD68FA50FEA312927
7+
state: present
8+
tags: [databases, mongodb]
9+
10+
- name: Add mongodb repository
11+
sudo: yes
12+
apt_repository:
13+
repo: 'deb http://repo.mongodb.org/apt/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }}/mongodb-org/3.2 multiverse'
14+
state: present
15+
tags: [databases, mongodb]
16+
17+
- name: Install mongodb
18+
sudo: yes
319
apt:
4-
name: "{{ item }}"
20+
name: mongodb-org
521
update_cache: yes
622
state: present
7-
with_items:
8-
- mongodb-server
23+
tags: [databases, mongodb]

0 commit comments

Comments
 (0)