renabled rest of tests.

This commit is contained in:
jsaliba 2017-09-14 11:21:37 +02:00
parent 2e6cd41cb1
commit 61ccb2f46b
3 changed files with 66 additions and 52 deletions

View File

@ -3,54 +3,58 @@
sudo: required
env:
# - >
# DISTRIBUTION=ubuntu-upstart
# DIST_VERSION=14.04
# MONGODB_VERSION=3.2
# - >
# DISTRIBUTION=ubuntu-upstart
# DIST_VERSION=14.04
# MONGODB_VERSION=3.0
# - >
# DISTRIBUTION=ubuntu-upstart
# DIST_VERSION=14.04
# MONGODB_VERSION=2.6
# - >
# DISTRIBUTION=ubuntu-upstart
# DIST_VERSION=12.04-builded
# MONGODB_VERSION=3.2
# - >
# DISTRIBUTION=ubuntu-upstart
# DIST_VERSION=12.04-builded
# MONGODB_VERSION=3.0
# - >
# DISTRIBUTION=ubuntu-upstart
# DIST_VERSION=12.04-builded
# MONGODB_VERSION=2.6
# - >
# DISTRIBUTION=centos
# DIST_VERSION=6
# MONGODB_VERSION=2.6
# - >
# DISTRIBUTION=centos
# DIST_VERSION=6
# MONGODB_VERSION=3.0
# - >
# DISTRIBUTION=centos
# DIST_VERSION=6
# MONGODB_VERSION=3.2
# - >
# DISTRIBUTION=centos
# DIST_VERSION=7
# MONGODB_VERSION=2.6
# - >
# DISTRIBUTION=centos
# DIST_VERSION=7
# MONGODB_VERSION=3.0
# - >
# DISTRIBUTION=centos
# DIST_VERSION=7
# MONGODB_VERSION=3.2
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=14.04
MONGODB_VERSION=3.2
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=14.04
MONGODB_VERSION=3.0
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=14.04
MONGODB_VERSION=2.6
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=12.04-builded
MONGODB_VERSION=3.2
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=12.04-builded
MONGODB_VERSION=3.0
- >
DISTRIBUTION=ubuntu-upstart
DIST_VERSION=12.04-builded
MONGODB_VERSION=2.6
- >
DISTRIBUTION=centos
DIST_VERSION=6-builded
MONGODB_VERSION=2.6
- >
DISTRIBUTION=centos
DIST_VERSION=6-builded
MONGODB_VERSION=3.0
- >
DISTRIBUTION=centos
DIST_VERSION=6-builded
MONGODB_VERSION=3.2
- >
DISTRIBUTION=centos
DIST_VERSION=6-builded
MONGODB_VERSION=3.4
- >
DISTRIBUTION=centos
DIST_VERSION=7-builded
MONGODB_VERSION=2.6
- >
DISTRIBUTION=centos
DIST_VERSION=7-builded
MONGODB_VERSION=3.0
- >
DISTRIBUTION=centos
DIST_VERSION=7-builded
MONGODB_VERSION=3.2
- >
DISTRIBUTION=centos
DIST_VERSION=7-builded

View File

@ -0,0 +1,13 @@
FROM centos:6
# This is needed so that ansible managed to read "ansible_default_ipv4"
RUN yum install iproute -y
# This step is needed since standard CentOS docker image does not come with EPEL installed by default
RUN yum install epel-release -y
# we can has SSH
EXPOSE 22
# pepare for takeoff
CMD ["/usr/sbin/init"]

View File

@ -20,10 +20,7 @@
- hosts: "{{ target }}"
become: no
gather_facts: yes
pre_tasks:
- name: Show hostvars
debug:
var: "hostvars[inventory_hostname]['ansible_default_ipv4']"
roles:
- role: greendayonfire.mongodb
when: "'mongo_master' in group_names"