Commit 1a41effe by Kevin Falcone

Steal liberally from the mongo role

This sets up the 10gen ubuntu package repo and installs 3.0.7 clients
from there (rather than using the 2.0 clients which ship with Ubuntu).
parent debdcaf4
......@@ -35,9 +35,12 @@ ad_hoc_reporting_debian_pkgs:
# includes mysqldump and others
- mysql-client
- libmysqlclient-dev
# for connecting to mongo
- mongodb-clients
# mongo client is installed as a separate step so it comes from the 10gen repo
ad_hoc_reporting_pip_pkgs:
# for running ansible mysql
- mysql-python
MONGODB_APT_KEY: "http://docs.mongodb.org/10gen-gpg-key.asc"
MONGODB_REPO: "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen"
mongo_version: 3.0.7
......@@ -28,6 +28,31 @@
tags:
- install:system-requirements
- name: add the mongodb signing key
apt_key:
id: 7F0CEB10
url: "{{ MONGODB_APT_KEY }}"
state: present
tags:
- install:system-requirements
- name: add the mongodb repo to the sources list
apt_repository:
repo: "{{ MONGODB_REPO }}"
state: present
tags:
- install:system-requirements
- name: install mongo shell
apt:
pkg: mongodb-org-shell={{ mongo_version }}
state: present
install_recommends: yes
force: yes
update_cache: yes
tags:
- install:system-requirements
- name: install python packages
pip:
name: "{{ item }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment