diff --git a/.travis.yml b/.travis.yml index 6a81584..2b0603e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/Dockerfile.centos_6-builded b/tests/Dockerfile.centos_6-builded new file mode 100644 index 0000000..06fb3b3 --- /dev/null +++ b/tests/Dockerfile.centos_6-builded @@ -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"] diff --git a/tests/site.yml b/tests/site.yml index b6934dc..f6d861f 100644 --- a/tests/site.yml +++ b/tests/site.yml @@ -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"